Esempio n. 1
0
        public void SetUp()
        {
            instance = new NullInstance();
            family = MockRepository.GenerateMock<IFamily>();

            instanceRef = new InstanceRef(instance, family);
        }
Esempio n. 2
0
        public InstanceRefTester()
        {
            instance = new NullInstance();
            familyMock = Substitute.For<IFamily>();

            instanceRef = new InstanceRef(instance, familyMock);
        }
Esempio n. 3
0
 protected virtual void MemberAdded(IFamily <TFamilyMember> family, TFamilyMember member)
 {
 }
 public void CreateFamily()
 {
     _game = new Game<ComponentMatchingFamily>();
     _family = new ComponentMatchingFamily();
     _family.Setup(_game, typeof(MockNode));
 }
 public void ClearFamily()
 {
     _family = null;
     _game = null;
 }
Esempio n. 6
0
 public InstanceRef(Instance instance, IFamily family)
 {
     _instance = instance;
     _family   = family;
 }
Esempio n. 7
0
 public Human(string name, DateTime birthday, IFamily parent) : this(name, birthday)
 {
     Parent = parent;
 }
Esempio n. 8
0
 public bool HasFamily(IFamily family) => familiesType.ContainsValue(family);
Esempio n. 9
0
 private MyFamily(T name, IFamily <T> parent)
 {
     this.name   = name;
     this.parent = parent;
 }
Esempio n. 10
0
 public FamilyFactory()
 {
     _family = new TFamily();
 }