public BrandsController( IBrandsService brandService, IErrorsService errorService) { this.brandService = brandService; this.errorService = errorService; }
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; }
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; }
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; }
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; }
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; }
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(); }
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; }
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()); }
public UnitService(IDbRepository<Unit> unitsRepo, IBrandsService brandService) { this.unitsRepository = unitsRepo; this.brandService = brandService; }
public BrandsController(IBrandsService brands) { this.brandsService = brands; }
public BrandsController(IBrandsService brandsService, IStoresService storesService) { _brandsService = brandsService; _storesService = storesService; }
/// <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; }
public BrandsController(IBrandsService brands) { Brands = brands; }
public AllBrandsController(IBrandsService brands) { Guard.WhenArgument(brands, "brands").IsNull().Throw(); this.brands = brands; }
/// <summary> /// Constructor method /// </summary> /// <param name="service">Brands service</param> public BrandController(IBrandsService service) { this.service = service; }
public BrandsController(IProductsService productsService, IBrandsService brandsService) { this.productsService = productsService; this.brandsService = brandsService; }
public BrandDropdownViewComponent(IBrandsService brandsService) { this.brandsService = brandsService; }
public BrandsController(IBrandsService brandsService) { _brandsService = brandsService; }
public HomeController(IConfiguration configuration, IBrandsService brandsService) { this.configuration = configuration; this.brandsService = brandsService; }