Пример #1
0
        public BookController(IBooksService booksService, IRatingsService ratingsService, IMapperAdapter mapper, IUserProvider userProvider)
        {
            if (booksService == null)
            {
                throw new ArgumentNullException("booksService");
            }

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

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

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

            this.booksService   = booksService;
            this.ratingsService = ratingsService;
            this.mapper         = mapper;
            this.userProvider   = userProvider;
        }
Пример #2
0
 public BaseControllerWithRole(IMapperAdapter mapper, ISolutionLogger logger, IUserProvider userProvider)
     : base(mapper, logger, userProvider)
 {
     if (mapper == null)
     {
         throw new NullReferenceException("IMapperAdapter not initialized");
     }
     _mapper = mapper;
 }
Пример #3
0
 public StatsController(INewsService <ApplicationRule> newsService, IMapperAdapter mapper, ISolutionLogger logger, IUserProvider userProvider)
     : base(mapper, logger, userProvider)
 {
     if (newsService == null)
     {
         throw new NullReferenceException("INewsService not initialized");
     }
     _newsService = newsService;
 }
Пример #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="cacheService"></param>
 /// <param name="basketRules"></param>
 /// <param name="stockProvider"></param>
 /// <param name="localized"></param>
 /// <param name="mapper"></param>
 public RedisAddBasketItemCommandHandler(ICacheService cacheService, IOptions <BasketRulesSettings> basketRules,
                                         IProductStockProvider stockProvider, IResponseLocalized localized, IMapperAdapter mapper)
 {
     _cacheService  = cacheService ?? throw new ArgumentNullException(nameof(cacheService));
     _stockProvider = stockProvider ?? throw new ArgumentNullException(nameof(stockProvider));
     _localized     = localized ?? throw new ArgumentNullException(nameof(localized));
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _basketRules   = basketRules.Value ?? throw new ArgumentNullException(nameof(basketRules.Value));
 }
 public ActivityLogService(
     ILoggerAdapter <ActivityLogService> logger,
     IMapperAdapter mapperAdapter,
     IAllActivityLogsQuery allActivityLogsQuery)
 {
     _logger               = logger;
     _mapperAdapter        = mapperAdapter;
     _allActivityLogsQuery = allActivityLogsQuery;
 }
Пример #6
0
 public ZaminServices(ITranslator resourceManager,
                      ILoggerFactory loggerFactory,
                      IJsonSerializer serializer,
                      IUserInfoService userInfoService,
                      ICacheAdapter cacheAdapter,
                      IMapperAdapter mapperFacade)
 {
     ResourceManager = resourceManager;
     LoggerFactory   = loggerFactory;
     Serializer      = serializer;
     UserInfoService = userInfoService;
     CacheAdapter    = cacheAdapter;
     MapperFacade    = mapperFacade;
 }
        public HomeController(IAimService aimService, IMapperAdapter mapper)
        {
            if (aimService == null)
            {
                throw new ArgumentNullException("Aim ServiceCannot be null");
            }

            if (mapper == null)
            {
                throw new ArgumentNullException("Mapper cannot be null");
            }

            this.aimService = aimService;
            this.mapper     = mapper;
        }
        public AddCategoryController(IAimCategoryService categoryService, IMapperAdapter mapper)
        {
            if (categoryService == null)
            {
                throw new ArgumentNullException("Category Service cannot be null");
            }

            if (mapper == null)
            {
                throw new ArgumentNullException("Mapper cannot be null");
            }

            this.categoryService = categoryService;
            this.mapper          = mapper;
        }
Пример #9
0
        public HomeController(IPlayerService playerService, IMapperAdapter mapper)
        {
            if (playerService == null)
            {
                throw new ArgumentNullException("playerService");
            }

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

            this.playerService = playerService;
            this.mapper        = mapper;
        }
Пример #10
0
 public CustomersService(
     ILoggerAdapter <CustomersService> logger,
     IMapperAdapter mapperAdapter,
     ICustomerByIdQuery customerByIdQuery,
     IAllCustomersQuery allCustomersQuery,
     ICreateCustomerCommand createCustomerCommand,
     IDeleteCustomerCommand deleteCustomerCommand
     )
 {
     _logger                = logger;
     _mapperAdapter         = mapperAdapter;
     _customerByIdQuery     = customerByIdQuery;
     _getAllCustomersQuery  = allCustomersQuery;
     _createCustomerCommand = createCustomerCommand;
     _deleteCustomerCommand = deleteCustomerCommand;
 }
Пример #11
0
        public PostController(
            IPostService postService,
            ICategoryService categoryService,
            IMapperAdapter mapperAdapter,
            IUserService userService)
        {
            Guard.WhenArgument(postService, "postService").IsNull().Throw();
            Guard.WhenArgument(categoryService, "categoryService").IsNull().Throw();
            Guard.WhenArgument(mapperAdapter, "mapperAdapter").IsNull().Throw();
            Guard.WhenArgument(userService, "userService").IsNull().Throw();

            this.postService     = postService;
            this.categoryService = categoryService;
            this.mapperAdapter   = mapperAdapter;
            this.userService     = userService;
        }
Пример #12
0
        public AddBookController(
            IBooksService booksService,
            IGenresService genresService,
            IUserProvider userProvider,
            IServerProvider serverProvider,
            ICacheProvider cacheProvider,
            IMapperAdapter mapper)
        {
            if (booksService == null)
            {
                throw new ArgumentNullException("booksService");
            }

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

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

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

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

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

            this.booksService   = booksService;
            this.genresService  = genresService;
            this.userProvider   = userProvider;
            this.serverProvider = serverProvider;
            this.cacheProvider  = cacheProvider;
            this.mapper         = mapper;
        }
Пример #13
0
 public BaseController(IMapperAdapter mapper, ISolutionLogger logger, IUserProvider userProvider)
 {
     if (mapper == null)
     {
         throw new NullReferenceException("IMapperAdapter not initialized");
     }
     if (logger == null)
     {
         throw new NullReferenceException("ISolutionLogger not initialized");
     }
     if (userProvider == null)
     {
         throw new NullReferenceException("IUserProvider not initialized");
     }
     _mapper       = mapper;
     _logger       = logger;
     _userProvider = userProvider;
 }
        public AddCityController(ICityService cityService, ICountryService countryService, IMapperAdapter mapper)
        {
            if (cityService == null)
            {
                throw new ArgumentNullException("City Service cannot be null");
            }

            if (countryService == null)
            {
                throw new ArgumentNullException("Country Service cannot be null");
            }

            if (mapper == null)
            {
                throw new ArgumentNullException("Mapper cannot be null");
            }

            this.cityService    = cityService;
            this.countryService = countryService;
            this.mapper         = mapper;
        }
Пример #15
0
        public SearchController(IBooksService booksService, IGenresService genresService, IMapperAdapter mapper)
        {
            if (booksService == null)
            {
                throw new ArgumentNullException("booksService");
            }

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

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

            this.booksService  = booksService;
            this.genresService = genresService;
            this.mapper        = mapper;
        }
Пример #16
0
        public ExploreController(IAimService aimService, IAimCategoryService categoryService, IMapperAdapter mapper)
        {
            if (aimService == null)
            {
                throw new ArgumentNullException("Aim Service cannot be null");
            }

            if (categoryService == null)
            {
                throw new ArgumentNullException("Category Service cannot be null");
            }

            if (mapper == null)
            {
                throw new ArgumentNullException("Mapper cannot be null");
            }

            this.aimService         = aimService;
            this.mapper             = mapper;
            this.aimCategoryService = categoryService;
        }
Пример #17
0
 public AddressAppService(IHttpContextAccessor context, IAddressService addressService, IAuthAppService authAppService, IMapperAdapter mapperAdapter) : base(context)
 {
     _addressService = addressService;
     _mapperAdapter  = mapperAdapter;
     _authAppService = authAppService;
 }
 public PhotosLogic(IMapperAdapter mapperAdapter, IRepository <Photo, PhotosSpecification> photosRepository)
 {
     _mapperAdapter    = mapperAdapter;
     _photosRepository = photosRepository;
 }
Пример #19
0
 public HomeController(IMapperAdapter mapper, ISolutionLogger logger, IUserProvider userProvider)
     : base(mapper, logger, userProvider)
 {
 }
Пример #20
0
 public LotsLogic(IMapperAdapter mapperAdapter, ILotRepository lotRepository, IMessagePublisher <LotCreatedMessage> messagePublisher)
 {
     _mapperAdapter    = mapperAdapter;
     _lotRepository    = lotRepository;
     _messagePublisher = messagePublisher;
 }
Пример #21
0
 public LotsController(IMapperAdapter mapperAdapter,
                       ILotsLogic lotsLogic)
 {
     _mapperAdapter = mapperAdapter;
     _lotsLogic     = lotsLogic;
 }
 public SchedulingAppService(IHttpContextAccessor context, ISchedulingService schedulingService, IAuthAppService authAppService, IMapperAdapter mapperAdapter) : base(context)
 {
     _schedulingService = schedulingService;
     _mapperAdapter     = mapperAdapter;
     _authAppService    = authAppService;
 }
Пример #23
0
 public MockArticleController(INewsService <ApplicationRule> newsService, IMapperAdapter mapper, ISolutionLogger logger, IUserProvider userProvider)
     : base(newsService, mapper, logger, userProvider)
 {
 }
Пример #24
0
 public CitezenAppService(ICitezenService citezenService, IMapperAdapter mapperAdapter)
 {
     this._citezenService = citezenService;
     _mapperAdapter       = mapperAdapter;
 }