コード例 #1
0
        public InterfaceImplementationTest()
        {
            var repoImp = new ImplementationUse();

            repoImp.Process();

            var repoAbs = new AbstractionUse(new Repository());

            repoAbs.Process();

            var repoAbsFake = new AbstractionUse(new FakeRepository());

            repoAbsFake.Process();
        }
        public InterfaceImplementationTest()
        {
            var implementationRepository = new ImplementationUse();

            implementationRepository.Process();

            var abstractionRepository = new AbstractionUse(new Repository());

            abstractionRepository.Process();

            var abstractionFakeRepository = new AbstractionUse(new FakeRepository());

            abstractionFakeRepository.Process();
        }