Beispiel #1
0
 public BooksController(ILogger <BooksController> logger, IBooksService bookService, IGoogleAPIClientService googleAPIClientService, IMapper mapper, IShelvesService shelvesService)
 {
     _logger                 = logger;
     _mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _bookService            = bookService ?? throw new ArgumentNullException(nameof(bookService));
     _shelvesService         = shelvesService ?? throw new ArgumentNullException(nameof(shelvesService));
     _googleApiClientService = googleAPIClientService ?? throw new ArgumentNullException(nameof(googleAPIClientService));
 }
Beispiel #2
0
 public MainController(IMessagingService messagingService, IShelvesService shelvesService, ILogger <MainController> logger)
 {
     _messagingService = messagingService;
     _shelvesService   = shelvesService;
     _logger           = logger;
 }
 public ShelvesController(IShelvesService shelvesService)
 {
     _shelvesService = shelvesService ?? throw new ArgumentNullException(nameof(shelvesService));
 }
Beispiel #4
0
 public DepartmentService(IMSContext context, IMapper mapper, IShelvesService shelves) : base(context)
 {
     _context        = context;
     _mapper         = mapper;
     _shelvesService = shelves;
 }