Esempio n. 1
0
 private void DataPortal_Fetch(object criteria, IChildDataPortal <ChildEntity> childDataPortal)
 {
     for (int i = 0; i < 10; i++)
     {
         Add(childDataPortal.CreateChild(i, "first" + i, "last" + i));
     }
 }
Esempio n. 2
0
 private void Create([Inject] IChildDataPortal <ChildItem> childDataPortal)
 {
     using (SuppressListChangedEvents)
     {
         Add(childDataPortal.CreateChild());
     }
 }
Esempio n. 3
0
 protected void DataPortal_Create([Inject] IChildDataPortal <EditableChild1> childDataPortal)
 {
     using (BypassPropertyChecks)
     {
         LoadProperty(ChildProperty, childDataPortal.CreateChild());
     }
     BusinessRules.CheckRules();
 }
Esempio n. 4
0
        private void Create([Inject] IChildDataPortal <FakePersonEmailAddresses> dataPortal)
        {
            // Create an empty list for holding email addresses
            LoadProperty(EmailAddressesProperty, dataPortal.CreateChild());

            // Trigger object checks
            BusinessRules.CheckRules();
        }
Esempio n. 5
0
 protected void DataPortal_Create([Inject] IChildDataPortal <ChildEntityList> childDataPortal)
 {
     SetProperty(ChildrenProperty, childDataPortal.CreateChild());
     TestResults.Reinitialise();
     TestResults.Add("ParentEntity", "Created");
     BusinessRules.CheckRules();
     Console.WriteLine("DataPortal_Create");
 }
Esempio n. 6
0
 protected void DataPortal_Fetch(object criteria, [Inject] IChildDataPortal <ChildEntityList> dataPortal)
 {
     _children = dataPortal.CreateChild();
     Console.WriteLine("DataPortal_Fetch");
     TestResults.Reinitialise();
     TestResults.Add("ParentEntity", "Fetched");
     BusinessRules.CheckRules();
 }
Esempio n. 7
0
 protected void DataPortal_Fetch(Criteria criteria, [Inject] IChildDataPortal <Children> dataPortal)
 {
     using (BypassPropertyChecks)
     {
         Data     = criteria._data;
         Children = dataPortal.CreateChild();
     }
     MarkOld();
 }
Esempio n. 8
0
 private void DataPortal_Create(Criteria criteria, [Inject] IChildDataPortal <Children> dataPortal)
 {
     using (BypassPropertyChecks)
     {
         Data     = criteria._data;
         Children = dataPortal.CreateChild();
     }
     CreatedDomain = AppDomain.CurrentDomain.Id;
 }
Esempio n. 9
0
 private void Create([Inject] IChildDataPortal <GrandChildren> dataPortal)
 {
     GrandChildren = dataPortal.CreateChild();
 }
Esempio n. 10
0
 private void DataPortal_Fetch(int id, [Inject] IChildDataPortal <ChildList> childDataPortal)
 {
     Children = childDataPortal.CreateChild();
 }
Esempio n. 11
0
 public static ChildList NewChildObject(IChildDataPortal <ChildList> dataPortal)
 {
     return(dataPortal.CreateChild());
 }
Esempio n. 12
0
 protected void DataPortal_Create([Inject] IChildDataPortal <Child> childDataPortal, [Inject] IChildDataPortal <ChildList> childListDataPortal)
 {
     LoadProperty(ChildProperty, childDataPortal.CreateChild());
     LoadProperty(ChildListProperty, childListDataPortal.CreateChild());
 }
Esempio n. 13
0
 private void Create(string data, [Inject] IChildDataPortal <GrandChildren> childDataPortal)
 {
     _data = data;
     LoadProperty(GrandChildrenProperty, childDataPortal.CreateChild());
 }
Esempio n. 14
0
 public static Child NewChild(IChildDataPortal <Child> childDataPortal)
 {
     return(childDataPortal.CreateChild());
 }
Esempio n. 15
0
        private T CreateChildWithoutCriteria <T>()
        {
            IChildDataPortal <T> dataPortal = _testDIContext.CreateChildDataPortal <T>();

            return(dataPortal.CreateChild());
        }
Esempio n. 16
0
 protected void DataPortal_DeleteSelf([Inject] IChildDataPortal <ChildList> childDataPortal)
 {
     Children = childDataPortal.CreateChild();
 }
Esempio n. 17
0
 private void Create([Inject] IChildDataPortal <FooList> childDataPortal)
 {
     LoadProperty(ChildListProperty, childDataPortal.CreateChild());
     BusinessRules.CheckRules();
 }
Esempio n. 18
0
 private void Create(string data, [Inject] IChildDataPortal <GrandChildren> childDataPortal)
 {
     LoadProperty(GuidProperty, Guid.NewGuid());
     LoadProperty(DataProperty, data);
     LoadProperty(GrandChildrenProperty, childDataPortal.CreateChild());
 }
Esempio n. 19
0
 private void Fetch(IDataReader dr, [Inject] IChildDataPortal <GrandChildren> dataPortal)
 {
     GrandChildren = dataPortal.CreateChild();
     MarkOld();
 }
Esempio n. 20
0
 protected void DataPortal_Create([Inject] IChildDataPortal <ChildList> dataPortal)
 {
     Children = dataPortal.CreateChild();
     BusinessRules.CheckRules();
 }
Esempio n. 21
0
 private void Fetch([Inject] IChildDataPortal <AChild> childDataPortal)
 {
     MarkAsChild();
     this.Add(childDataPortal.CreateChild());
 }
Esempio n. 22
0
 private void Fetch(IDataReader dr, [Inject] IChildDataPortal <GrandChildren> childDataPortal)
 {
     LoadProperty(GrandChildrenProperty, childDataPortal.CreateChild());
 }
Esempio n. 23
0
        private Child CreateChild()
        {
            IChildDataPortal <Child> childDataPortal = _testDIContext.CreateChildDataPortal <Child>();

            return(childDataPortal.CreateChild());
        }