public void NoCustomerBetter() { var customerRepo = new InMemoryCustomerRepo(); var display = new DisplaySpy(); var superMega = new SuperMegaUseCase(customerRepo, display); superMega.DoSomething(); Assert.Equal("", display.Output); }
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); }