Пример #1
0
 public BrandsController(
     IBrandsService brandService,
     IErrorsService errorService)
 {
     this.brandService = brandService;
     this.errorService = errorService;
 }
Пример #2
0
        public BrandsServiceTests()
        {
            this.InitializeMapper();
            this.InitializeDatabaseAndRepositories();
            this.InitializeFields();

            this.brandsService = new BrandsService(this.brandsRepository);
        }
 public ProductsController(
     IProductsService productsService,
     ICategoriesService categoriesService,
     IBrandsService brandsService)
 {
     this.productsService   = productsService;
     this.categoriesService = categoriesService;
     this.brandsService     = brandsService;
 }
 public LearningContentController(
     IBrandsService brandsService,
     ITutorialService tutorialService,
     ICourseService courseService,
     ISearchSortFilterPaginateService searchSortFilterPaginateService
     )
 {
     this.brandsService   = brandsService;
     this.tutorialService = tutorialService;
     this.courseService   = courseService;
     this.searchSortFilterPaginateService = searchSortFilterPaginateService;
 }
        public DropDownListPopulator(ICategoriesService categories, IBrandsService brands, ITopicsService topics, ICacheService cache)
        {
            Guard.WhenArgument(topics, "topics").IsNull().Throw();
            Guard.WhenArgument(brands, "brands").IsNull().Throw();
            Guard.WhenArgument(categories, "categories").IsNull().Throw();
            Guard.WhenArgument(cache, "cache").IsNull().Throw();

            this.categories = categories;
            this.brands     = brands;
            this.topics     = topics;
            this.cache      = cache;
        }
        public HomeService(ITopicsService topics, IBrandsService brands, ICategoriesService categories, ISupplementsService supplements)
        {
            Guard.WhenArgument(topics, "topics").IsNull().Throw();
            Guard.WhenArgument(brands, "brands").IsNull().Throw();
            Guard.WhenArgument(categories, "categories").IsNull().Throw();
            Guard.WhenArgument(supplements, "supplements").IsNull().Throw();

            this.supplements = supplements;
            this.categories  = categories;
            this.brands      = brands;
            this.topics      = topics;
        }
Пример #7
0
 public ShopController(
     IShopService shopService,
     IProductsService productsService,
     ICategoriesService categoriesService,
     IBrandsService brandsService,
     IMapper mapper)
 {
     this.shopService       = shopService;
     this.productsService   = productsService;
     this.categoriesService = categoriesService;
     this.brandsService     = brandsService;
     this.mapper            = mapper;
 }
Пример #8
0
 public ProductsController(
     IProductsService productsService,
     ICategoriesService categoriesService,
     IBrandsService brandsService,
     IMapper mapper,
     IErrorsService errorService)
 {
     this.productsService   = productsService;
     this.categoriesService = categoriesService;
     this.brandsService     = brandsService;
     this.mapper            = mapper;
     this.errorService      = errorService;
 }
Пример #9
0
        public BrandsController(IBrandsService brandsService, IMapper mapper)
        {
            if (brandsService == null)
            {
                throw new ArgumentNullException(nameof(brandsService));
            }

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

            this.mapper        = mapper;
            this.brandsService = brandsService;
        }
Пример #10
0
 public BatteryAdminController(
     ICategoriesService categoriesService,
     IBrandsService brandsService,
     IBatteryService batteryService,
     ICapacityService capacityService,
     IAmperageService amperageService,
     ITechnologyService technologyService)
 {
     this.categoriesService = categoriesService;
     this.brandsService     = brandsService;
     this.batteryService    = batteryService;
     this.capacityService   = capacityService;
     this.amperageService   = amperageService;
     this.technologyService = technologyService;
 }
Пример #11
0
        public void Setup()
        {
            brandsService   = A.Fake <IBrandsService>();
            courseService   = A.Fake <ICourseService>();
            tutorialService = A.Fake <ITutorialService>();
            searchSortFilterPaginateService = A.Fake <ISearchSortFilterPaginateService>();

            httpRequest  = A.Fake <HttpRequest>();
            httpResponse = A.Fake <HttpResponse>();

            const string cookieValue = "ActiveStatus|Active|false";

            controller = new LearningContentController(
                brandsService,
                tutorialService,
                courseService,
                searchSortFilterPaginateService
                ).WithMockHttpContext(httpRequest, CookieName, cookieValue, httpResponse)
                         .WithMockUser(true)
                         .WithMockServices()
                         .WithMockTempData();
        }
Пример #12
0
 public ProductsController(
     IProductsService productsService,
     IBrandsService brandsService,
     ICondiitonsService condiitonsService,
     IInventoryService inventoryService,
     IManufacturersService manufacturersService,
     IWarehouseService warehouseService,
     UserManager <ApplicationUser> userManager,
     IOrderItemsService orderItemsService,
     IManualEmailSender emailSender,
     IWebHostEnvironment environment)
 {
     this.productService       = productsService;
     this.brandsService        = brandsService;
     this.condiitonsService    = condiitonsService;
     this.inventoryService     = inventoryService;
     this.manufacturersService = manufacturersService;
     this.warehouseService     = warehouseService;
     this.userManager          = userManager;
     this.orderItemsService    = orderItemsService;
     this.emailSender          = emailSender;
     this.environment          = environment;
 }
Пример #13
0
        public PickerViewModel(INavigation navigation, ObservableCollection <GuitarModel> carrito)
        {
            _navigationService = navigation;

            //initialize carrito only when start the program
            if (carrito == null)
            {
                CarritoModels = new ObservableCollection <GuitarModel>();
            }
            else
            {
                CarritoModels = carrito;
            }

            FilterByOptions = new ObservableCollection <string>()
            {
                "Brand", "Price", "Stock", "Rating"
            };

            //SelectedFilter = "Brand";
            //Visible = "False";

            _brandsService = new BrandsService();
            BrandsToShow   = new ObservableCollection <Brand>();
            ProductsToShow = new ObservableCollection <GuitarModel>();
            ModelSelected  = new GuitarModel();

            InitializeBrandsAndModels();
            ProductsToShow = InitializeAllProductsCollection();

            //FilterProductsList();

            VisitGuitarModel = new Command(async() => await ExecuteVisitGuitarModel());
            //NextPageParam = new Command(async (Param) => await ExecuteNextPage(Param));
            GoToCarrito          = new Command(async() => await ExecuteGoToCarrito());
            ChangeOrderDirection = new Command(async() => await ExecuteChangeOrderDirection());
        }
Пример #14
0
 public UnitService(IDbRepository<Unit> unitsRepo, IBrandsService brandService)
 {
     this.unitsRepository = unitsRepo;
     this.brandService = brandService;
 }
 public BrandsController(IBrandsService brands)
 {
     this.brandsService = brands;
 }
Пример #16
0
 public BrandsController(IBrandsService brandsService, IStoresService storesService)
 {
     _brandsService = brandsService;
     _storesService = storesService;
 }
Пример #17
0
 /// <summary>
 /// Constructor method
 /// </summary>
 /// <param name="snowboardsService">Snowboards service</param>
 /// <param name="brandsService">Brands service</param>
 /// <param name="hostingEnvironment">Hosting environment</param>
 public SnowboardController(ISnowboardsService snowboardsService, IBrandsService brandsService, IHostingEnvironment hostingEnvironment)
 {
     this.snowboardsService  = snowboardsService;
     this.brandsService      = brandsService;
     this.hostingEnvironment = hostingEnvironment;
 }
Пример #18
0
 public BrandsController(IBrandsService brands)
 {
     Brands = brands;
 }
Пример #19
0
        public AllBrandsController(IBrandsService brands)
        {
            Guard.WhenArgument(brands, "brands").IsNull().Throw();

            this.brands = brands;
        }
Пример #20
0
 /// <summary>
 /// Constructor method
 /// </summary>
 /// <param name="service">Brands service</param>
 public BrandController(IBrandsService service)
 {
     this.service = service;
 }
Пример #21
0
 public BrandsController(IProductsService productsService,
                         IBrandsService brandsService)
 {
     this.productsService = productsService;
     this.brandsService   = brandsService;
 }
Пример #22
0
 public BrandDropdownViewComponent(IBrandsService brandsService)
 {
     this.brandsService = brandsService;
 }
 public BrandsController(IBrandsService brandsService)
 {
     _brandsService = brandsService;
 }
Пример #24
0
 public HomeController(IConfiguration configuration, IBrandsService brandsService)
 {
     this.configuration = configuration;
     this.brandsService = brandsService;
 }