Exemple #1
0
 public Program(
     ILogger logger,
     IMenu menu,
     IIoHelper ioHelper,
     IBooksService booksService,
     IAuthorsService authorsService,
     IUsersService usersService,
     INotificationsService notificationService,
     IDatabaseManagementService databaseManagementService,
     IBookStoreService bookStoreService)
 {
     _logger                    = logger;
     _menu                      = menu;
     _ioHelper                  = ioHelper;
     _booksService              = booksService;
     _authorsService            = authorsService;
     _usersService              = usersService;
     _notificationService       = notificationService;
     _databaseManagementService = databaseManagementService;
     _bookStoreService          = bookStoreService;
 }
 public BookStoreController(IBookStoreService bookStoreService)
 {
     _bookStoreService = bookStoreService;
 }
 public HomeController(IBookStoreService service)
 {
     _service = service;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorsController"/> class with necessary dependencies.
 /// </summary>
 /// <param name="service">Service object.</param>
 public AuthorsController(IBookStoreService service)
 {
     this.bookStoreService = service;
 }
 public BookController(IBookStoreService service)
 {
     svc = service;
 }
Exemple #6
0
        public BookStoreControllerTest()
        {
            Container container = OnlineBookShop.Bootstrapper.ApiConfig.ConfigureBindings();

            _bookStoreService = container.GetInstance <IBookStoreService>();
        }
Exemple #7
0
 public void SetUp()
 {
     _store   = new Mock <IStore>();
     _service = new BookStoreService();
 }
 public StatisticsProvider(IBookStoreService bookStoreService)
 {
     _bookStoreService = bookStoreService;
 }
 public AccountController(IBookStoreService service)
 {
     _service = service;
 }
 public BooksPageViewModel(IBookStoreService bookStore, IPageService pageService)
 {
     _bookStore   = bookStore;
     _pageService = pageService;
 }
 public VolumeRepository(IBookStoreService service)
 {
     this.service = service;
 }
Exemple #12
0
 public void SetUp()
 {
     _bookStoreService = new BookStoreService();
     BookStoreService_DoesNotThrowException_WhenImportCatalog();
 }
Exemple #13
0
 public AccountController(IBookStoreService service)
 {
     _service = service;
 }
 public HomeController(IBookStoreService service)
 {
     _service = service;
 }
Exemple #15
0
 public OrderController(IBookStoreService service)
 {
     svc = service;
 }