public BookProcessor(IBookDataProvider bookDataProvider, IBookParser bookParser, IBookStorage bookStorage) { _bookDataProvider = bookDataProvider; _bookParser = bookParser; _bookStorage = bookStorage; }
public void Setup() { _bookDataProviderFake = A.Fake <IBookDataProvider>(options => options.Strict()); _bookParserFake = A.Fake <IBookParser>(options => options.Strict()); _bookStorageFake = A.Fake <IBookStorage>(options => options.Strict()); _bookProcessor = new BookProcessor(_bookDataProviderFake, _bookParserFake, _bookStorageFake); }
public AddBookUseCase(IAuthorDataProvider authorDataProvider, IBookDataProvider bookDataProvider) { _authorDataProvider = authorDataProvider; _bookDataProvider = bookDataProvider; }
public FindBooksUseCase(IBookDataProvider bookDataProvider) { _bookDataProvider = bookDataProvider; }
public DeleteBookUseCase(IBookDataProvider bookDataProvider) { _bookDataProvider = bookDataProvider; }
public CreateBookUseCase(IBookDataProvider bookDataProvider, IAuthorDataProvider authorDataProvider) { _bookDataProvider = bookDataProvider; _authorDataProvider = authorDataProvider; }
public GetBookByIDUseCase(IBookDataProvider bookDataProvider) { _bookDataProvider = bookDataProvider; }