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);
    }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 3
0
 public AClass(IAchild childByInterface, AChild childAutoInjected)
 {
     ChildByInterface  = childByInterface;
     ChildAutoInjected = childAutoInjected;
 }
Ejemplo n.º 4
0
 public int IndexOf(AChild entity)
 {
     return base.IndexOf(entity);
 }
Ejemplo n.º 5
0
 public bool Contains(AChild entity)
 {
     return base.Contains(entity);
 }
Ejemplo n.º 6
0
 public void Add(AChild entity)
 {
     base.Add(entity);
 }
Ejemplo n.º 7
0
 public bool Remove(AChild entity)
 {
     return base.Remove(entity);
 }
Ejemplo n.º 8
0
 public void Insert(int index, AChild entity)
 {
     base.Insert(index, entity);
 }