public PeopleUseCaseTest() { peopleGateway = new Mock <IPeopleGateway>(); peopleGateway.Setup(p => p.GetById(1)).Returns(Task.FromResult(people)); peopleGateway.Setup(p => p.GetById(2)).Returns(Task.FromResult(emptyPeople)); _peopleUseCase = new PeopleUseCase(peopleGateway.Object); }
public PeopleController(IPeopleUseCase peopleUseCase, ICarUseCase carUseCase) { _peopleUseCase = peopleUseCase; _carUseCase = carUseCase; }