static void Main(string[] args)
    {
        AChild a1 = new AChild();

        Console.WriteLine(a1.TextureImage.Path);
        BChild b = new BChild();

        Console.WriteLine(b.TextureImage.Path);
        AChild a2 = new AChild();

        Console.WriteLine(a2.TextureImage.Path);
    }
示例#2
0
        public void MPT_Redundancy_AddNewAggt()
        {
            var repo = RF.Concrete <ARepository>();

            using (RF.TransactionScope(repo))
            {
                var a = new A {
                    Name = "A1"
                };
                var ac = new AChild();

                a.AChildList.Add(ac);
                Assert.AreEqual(ac.RD_AName, a.Name);

                Save(a);

                a = repo.GetById(a.Id);
                Assert.AreEqual(a.AChildList[0].RD_AName, a.Name);
            }
        }
示例#3
0
 public AClass(IAchild childByInterface, AChild childAutoInjected)
 {
     ChildByInterface  = childByInterface;
     ChildAutoInjected = childAutoInjected;
 }
示例#4
0
 public int IndexOf(AChild entity)
 {
     return base.IndexOf(entity);
 }
示例#5
0
 public bool Contains(AChild entity)
 {
     return base.Contains(entity);
 }
示例#6
0
 public void Add(AChild entity)
 {
     base.Add(entity);
 }
示例#7
0
 public bool Remove(AChild entity)
 {
     return base.Remove(entity);
 }
示例#8
0
 public void Insert(int index, AChild entity)
 {
     base.Insert(index, entity);
 }