public void SetUp() { creater = MockRepository.GenerateMock<IBookCreater>(); retriever = MockRepository.GenerateMock<IGenreRetriever>(); _endpoint = new CreateEndpoint(creater, retriever); }
public CreateEndpoint(IBookCreater bookCreater, IGenreRetriever genreRetriever) { this.bookCreater = bookCreater; this.genreRetriever = genreRetriever; }