示例#1
0
        public void NoCustomerBetter()
        {
            var customerRepo = new InMemoryCustomerRepo();
            var display      = new DisplaySpy();
            var superMega    = new SuperMegaUseCase(customerRepo, display);

            superMega.DoSomething();

            Assert.Equal("", display.Output);
        }
示例#2
0
        public void ManyCustomersBetter()
        {
            var customerRepo = new InMemoryCustomerRepo("massimo", "matteo");
            var display      = new DisplaySpy();
            var superMega    = new SuperMegaUseCase(customerRepo, display);

            superMega.DoSomething();

            Assert.Contains("massimo", display.Output);
            Assert.Contains("matteo", display.Output);
        }