public void CanCreate() { updater = MockRepository.GenerateMock<IBookUpdater>(); genreRetriever = MockRepository.GenerateMock<IGenreRetriever>(); bookRetriever = MockRepository.GenerateMock<IBookRetriever>(); endpoint = new UpdateEndpoint(updater, genreRetriever, bookRetriever); }
public void CanCreate() { bookRetriever = MockRepository.GenerateMock<IBookRetriever>(); genreRetriever = MockRepository.GenerateMock<IGenreRetriever>(); endpoint = new IndexEndpoint(genreRetriever, bookRetriever); }
public IndexEndpoint(IGenreRetriever genreRetriever, IBookRetriever bookRetriever) { this.bookRetriever = bookRetriever; this.genreRetriever = genreRetriever; }
public UpdateEndpoint(IBookUpdater updater, IGenreRetriever genreRetriever, IBookRetriever bookRetriever) { this.genreRetriever = genreRetriever; this.bookRetriever = bookRetriever; this.updater = updater; }
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; }