public PeopleRepositoryTests() { connectionService = new Mock <IConnection>(); var db = new InMemoryDatabase(); db.Insert(people); connectionService.Setup(c => c.GetConnection(configuration)).Returns(db.OpenConnection()); peopleGateway = new PeopleRepository(connectionService.Object, configuration); }
public PeopleUseCase(IPeopleGateway peopleRepository) { _peopleRepository = peopleRepository; }