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; }
public BaseControllerWithRole(IMapperAdapter mapper, ISolutionLogger logger, IUserProvider userProvider) : base(mapper, logger, userProvider) { if (mapper == null) { throw new NullReferenceException("IMapperAdapter not initialized"); } _mapper = mapper; }
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; }
/// <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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
public HomeController(IMapperAdapter mapper, ISolutionLogger logger, IUserProvider userProvider) : base(mapper, logger, userProvider) { }
public LotsLogic(IMapperAdapter mapperAdapter, ILotRepository lotRepository, IMessagePublisher <LotCreatedMessage> messagePublisher) { _mapperAdapter = mapperAdapter; _lotRepository = lotRepository; _messagePublisher = messagePublisher; }
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; }
public MockArticleController(INewsService <ApplicationRule> newsService, IMapperAdapter mapper, ISolutionLogger logger, IUserProvider userProvider) : base(newsService, mapper, logger, userProvider) { }
public CitezenAppService(ICitezenService citezenService, IMapperAdapter mapperAdapter) { this._citezenService = citezenService; _mapperAdapter = mapperAdapter; }