示例#1
0
 public BookProcessor(IBookDataProvider bookDataProvider,
                      IBookParser bookParser,
                      IBookStorage bookStorage)
 {
     _bookDataProvider = bookDataProvider;
     _bookParser       = bookParser;
     _bookStorage      = bookStorage;
 }
示例#2
0
        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);
        }
示例#3
0
 public AddBookUseCase(IAuthorDataProvider authorDataProvider, IBookDataProvider bookDataProvider)
 {
     _authorDataProvider = authorDataProvider;
     _bookDataProvider   = bookDataProvider;
 }
示例#4
0
 public FindBooksUseCase(IBookDataProvider bookDataProvider)
 {
     _bookDataProvider = bookDataProvider;
 }
示例#5
0
 public DeleteBookUseCase(IBookDataProvider bookDataProvider)
 {
     _bookDataProvider = bookDataProvider;
 }
 public CreateBookUseCase(IBookDataProvider bookDataProvider, IAuthorDataProvider authorDataProvider)
 {
     _bookDataProvider   = bookDataProvider;
     _authorDataProvider = authorDataProvider;
 }
 public GetBookByIDUseCase(IBookDataProvider bookDataProvider)
 {
     _bookDataProvider = bookDataProvider;
 }