Example #1
0
        public BookListServiceTests()
        {
            if (File.Exists(this._fileSource))
            {
                File.Delete(this._fileSource);
            }

            this._bookService = new BookListService(new BookListStorage(this._fileSource));
            _bookService.AddBook(new ScientificBook("978-0735667457", "Richter", "CLR via C#", "O'REILlY", 2013, 896, 176));
            _bookService.AddBook(new ScientificBook("978-5-84592087-4", "Albahary", "C# in nutshell", "O'REILlY", 2017, 1040, 250));
            _bookService.AddBook(new ScientificBook("0-321-12742-0", "Fauler", "Architecture of corporate software applications", "Williams", 2006, 541, 90));
            _bookService.AddBook(new ScientificBook("978-1509304066", "Chambers", "ASP .Net Core application development", "Microsot Press", 2017, 464, 70));

            BookLogger.Debug("Tests");
        }
 public BookListController(IBookListService bookListService)
 {
     _bookListService = bookListService;
 }
 public BookList(IBookListService bls)
 {
     this.bls = bls; 
 }
Example #4
0
 static Program()
 {
     BooksService = new BookListService(new BinaryBookListRepository());
 }
Example #5
0
 public CreateSharedListCommandHandler(IDataStorage writeService, IBookListService bookListService) : base(writeService)
 {
     _bookListService = bookListService;
 }