コード例 #1
0
        public InheritanceCompositionTest2()
        {
            var repoH = new PersonInheritanceRepository();

            repoH.Add(new Person());
            repoH.Delete(new Person());

            var repoC = new PersonCompositionRepository(new Repository <Person>());

            repoC.Add(new Person());
        }
コード例 #2
0
        public InheritanceCompositionTests2()
        {
            var inheritanceRepository = new PersonInheritanceRepository();

            inheritanceRepository.Add(new Person());
            inheritanceRepository.Delete(new Person());

            var compositionRepository = new PersonCompositionRepository(new Repository <Person>());

            compositionRepository.Add(new Person());
        }