9using System.Collections.Generic;
12using System.Threading.Tasks;
18using TestClass = NUnit.Framework.TestFixtureAttribute;
19using TestInitialize = NUnit.Framework.SetUpAttribute;
20using TestCleanup = NUnit.Framework.TearDownAttribute;
21using TestMethod = NUnit.Framework.TestAttribute;
23using Microsoft.VisualStudio.TestTools.UnitTesting;
36 _testDIContext = TestDIContextFactory.CreateDefaultContext();
44 var obj = dataPortal.
Create();
53 var obj = dataPortal.
Create();
54 obj.AddChild(dataPortal);
64 var obj = dataPortal.
Create();
65 obj.AddChild(dataPortal);
66 obj.Child.Name =
"child";
67 var cloned = obj.Clone();
78 var obj = dataPortal.
Create();
87 var obj = dataPortal.
Create();
99 var obj = dataPortal.
Create();
101 var cloned = obj.Clone();
112 var obj = dataPortal.
Create();
114 var cloned = obj.Clone();
117 var identities =
new List<int>();
120 Assert.IsFalse(identities.Contains(((
IBusinessObject)cloned[1]).Identity),
"new identity a repeat");
129 var obj = dataPortal.
Create();
139 var obj = dataPortal.
Create();
149 var obj = dataPortal.
Create();
void IdentityNewListChild()
void IdentityInitializedDynamicListBase()
static void ClassInitialize(TestContext context)
void IdentityInitializedBusinessListBase()
void IdentityNewBaseChild()
void IdentityPostCloneIdentityManager()
void IdentityInitializedBusinessBase()
void IdentityInitializedBusinessBindingListBase()
void IdentityInitializedDynamicBindingListBase()
Type to carry context information for DI in unit tests
This is the core interface implemented by all CSLA .NET base classes.
Interface defining the members of the data portal type.
object Create(params object[] criteria)
Called by a factory method in a business class to create a new object, which is loaded with default v...