public AuthorApiController(ILocalLogger logger, IAuthorService authorService)
        {
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            if (authorService == null)
            {
                throw new ArgumentNullException(nameof(authorService));
            }

            _logger = logger;
            _authorService = authorService;
        }
        /// <summary>
        /// IBookRepository injection constructor
        /// </summary>
        /// <param name="bookRepository">Injection of type IBookRepository</param>
        public BookApiController(IBookOrchestration bookOrchestration,
            IBookRepository bookRepository,
            ILocalLogger localLogger)
        {
            if (localLogger == null)
            {
                throw new ArgumentNullException("localLogger");
            }

            if (bookOrchestration == null)
            {
                throw new ArgumentNullException("bookOrchestration");
            }

            if (bookRepository == null)
            {
                throw new ArgumentNullException("bookRepository");
            }

            _localLogger = localLogger;
            _bookOrchestration = bookOrchestration;
            _bookRepository = bookRepository;
        }
 public GenreApiController(ILocalLogger logger,
     IGenreService genreService)
 {
     _logger = logger;
     _genreService = genreService;
 }
Exemplo n.º 4
0
 public WebApiApplication()
 {
     // IoC Bootstrapper
     _apiBootstrapper = new ApiBootstrapper();
     _logger = _apiBootstrapper.Resolve<ILocalLogger>();
 }
Exemplo n.º 5
0
 public ErrorController(ILocalLogger logger)
 {
     _logger = logger;
 }
Exemplo n.º 6
0
 public NhUnitOfWork(ILocalLogger logger, ISessionFactoryWrapper sessionFactoryWrapper)
 {
     _logger = logger;
     _sessionFactoryWrapper = sessionFactoryWrapper;
 }