public SubCategoriesController(ISubCategoryService subCategory, ICategoryService category, Core.IWorkContext workContext, IHostingEnvironment env) { this._category = category; this._subCategory = subCategory; this._workContext = workContext; this._env = env; }
public SubCategoryApp(ISubCategoryService service, IFieldService fieldService, IFieldOptionService fieldOptionService) : base(service) { _service = service; _fieldService = fieldService; _fieldOptionService = fieldOptionService; }
public ProductService( IDeletableEntityRepository <Product> productRepository, ISubCategoryService subCategoryService) { this.productRepository = productRepository; this.subCategoryService = subCategoryService; }
public SubCategoriesController( ICategoryService categoryService, ISubCategoryService subCategoryService) { this.categoryService = categoryService; this.subCategoryService = subCategoryService; }
public void Setup() { var category = new SubCategory() { ID = 2, Name = "Rent", Description = "Home Rent" }; Repository = new Mock <ISubCategoryRepository>(); Repository.Setup(i => i.GetSubCategories(It.IsAny <int>(), It.IsAny <int>())).ReturnsAsync(new List <SubCategory>(new SubCategory[] { category })); Repository.Setup(i => i.GetSubCategoryById(It.Is <int>(o => o.Equals(2)))).ReturnsAsync(category); Repository.Setup(i => i.CreateSubCategory( It.IsAny <int>(), // user It.IsAny <int>(), // category It.IsAny <string>(), // name It.IsAny <string>())) // description .ReturnsAsync(new Random().Next()); Repository.Setup(i => i.UpdateSubCategory( It.IsAny <int>(), // id It.IsAny <int>(), // category It.IsAny <string>(), // name It.IsAny <string>())) // description .ReturnsAsync(true); Repository.Setup(i => i.DeleteSubCategory(It.IsAny <int>(), It.IsAny <int>())).ReturnsAsync(true); Service = new SubCategoryService(Context.Object, Repository.Object); }
public AdminController(IProductService productService, ICategoryService categoryService, IHostingEnvironment appEnvironment, ISubCategoryService subCategoryService) { _productService = productService; _categoryService = categoryService; _appEnvironment = appEnvironment; _subCategoryService = subCategoryService; }
public HomeController(IProductService productService, ICategoryservice categoryService, ISubCategoryService subCategoryService, IBrandService brandService) { _productService = productService; _categoryService = categoryService; _subCategoryService = subCategoryService; _brandService = brandService; }
public CategoryApiController(ICategoryService CategoryService, ISubCategoryService SubCategoryService, IDivisionService DivisionService, ISupplierService SupplierService) { this._CategoryService = CategoryService; this._SubCategoryService = SubCategoryService; this._DivisionService = DivisionService; this._SupplierService = SupplierService; }
public Importer(ICategoryService category, ISubCategoryService subCategory, ITransactionTypeService transactionType, ITransactionService transaction) { Category = category; SubCategory = subCategory; TransactionType = transactionType; Transaction = transaction; Sheets = new List <string>(new string[] { "01-Jan", "02-Feb", "03-Mar", "04-Apr", "05-May", "06-Jun", "07-Jul", "08-Aug", "09-Sep", "10-Oct", "11-Nov", "12-Dec" }); }
public AdminController(ICategoryService categoryService, ISubCategoryService subCategoryService, IMapper mapper, IAuthService authService) { _categoryService = categoryService; _subCategoryService = subCategoryService; _mapper = mapper; _authService = authService; }
public HomeController(IProductService productService, UserManager <CustomIdentityUser> userManager, ICategoryService categoryService, ISubCategoryService subCategoryService) { _productService = productService; _userManager = userManager; _categoryService = categoryService; _subCategoryService = subCategoryService; }
public CategoryController(ISubCategoryService subCategoryService, IMapper mapper, ICategoryService categoryService) { _categoryService = categoryService; _subCategoryService = subCategoryService; _mapper = mapper; }
public ItemsController( IModeratorItemService itemService, ISubCategoryService subCategoryService) { this.itemService = itemService; this.subCategoryService = subCategoryService; }
public ResumeController(IResumeService resumeService, IMapper mapper, ICategoryService categoryService, ISubCategoryService subCategoryService) { _subCategoryService = subCategoryService; _categoryService = categoryService; _mapper = mapper; _resumeService = resumeService; }
public LastAddedAdsViewComponent(IAdvertisementService advertisementService, UserManager <User> userManager, ICategoryService categoryService, ISubCategoryService subCategoryService, ITownService townService) { this.advertisementService = advertisementService; this.userManager = userManager; this.categoryService = categoryService; this.subCategoryService = subCategoryService; this.townService = townService; }
public SkillController(ICategoryService categoryService, ISubCategoryService subCategoryService, ISkillService skillService, IMapper mapper) { _categoryService = categoryService; _subCategoryService = subCategoryService; _skillService = skillService; _mapper = mapper; }
public CategoriesController(ICategoryService category, Core.IWorkContext workContext, IHostingEnvironment env, ISubCategoryService subCategory, IPostService post) { this._category = category; this._workContext = workContext; this._env = env; this._subCategory = subCategory; this._post = post; }
public AdministrationController(IRegionService regionService, ICityService cityService, ICategoryService categoryService, ISubCategoryService SubCategoryService) { this.regionService = regionService; this.cityService = cityService; this.categoryService = categoryService; this.SubCategoryService = SubCategoryService; }
public PortofolioController(IPortofolioService portofolioService, ICategoryService categoryService, ISubCategoryService subCategoryService, IMapper mapper) { _mapper = mapper; _subCategoryService = subCategoryService; _categoryService = categoryService; _portofolioService = portofolioService; }
public BlogController(ICategoryService categoryService, ISubCategoryService subCategoryService, IBlogService blogService, IMapper mapper) { _categoryService = categoryService; _subCategoryService = subCategoryService; _blogService = blogService; _mapper = mapper; }
public ProductController(IProductService service, ILogger <Product> logger, ICategoryService categoryService, ISubCategoryService subCategoryService, IBrandService brandService) : base(service, logger) { Service = service; CategoryService = categoryService; SubCategoryService = subCategoryService; BrandService = brandService; }
//private static Logger _logger = LogManager.GetCurrentClassLogger(); public ProductController(IProductService productService, IHostingEnvironment hostingEnvironment, ICategoryService categoryService, ISubCategoryService subCategoryService, ILogger <ProductController> logger) { _productService = productService; _hostingEnvironment = hostingEnvironment; _categoryService = categoryService; _subCategoryService = subCategoryService; _logger = logger; }
public ProductsController(ICategoryMasterService categoryMasterService, IFeedbackService feedbackService, ISubCategoryService subCategoryService, IProductService productService, IHomeService homeService) : base(productService) { _categoryMasterService = categoryMasterService; _subCategoryService = subCategoryService; _productService = productService; _feedbackService = feedbackService; _homeService = homeService; }
public SubCategoryOneController(ApplicationDBContext context, IHostingEnvironment hostingEnvironment , ICategoryService categoryService, ISubCategoryService subCategoryService, ILogger <SubCategoryOneController> logger) { _context = context; _hostingEnvironment = hostingEnvironment; _categoryService = categoryService; _subCategoryService = subCategoryService; _logger = logger; }
public ProductController(IProductService productService, IHostingEnvironment hostingEnvironment, ICategoryService categoryService, ISubCategoryService subCategoryService, IMapper mapper) { _productService = productService; _hostingEnvironment = hostingEnvironment; _categoryService = categoryService; _subCategoryService = subCategoryService; _mapper = mapper; }
public ProductsController( ISubCategoryService subCategoryService, IProductService productService, ICloudinaryService imageService) { this.subCategoryService = subCategoryService; this.productService = productService; this.imageService = imageService; }
public AjaxSubCategoryController(ICategoryService categoryService, IMapper mapper, ISubCategoryService subCategoryService, ISubCategoryRepository subCategoryRepository) { _categoryService = categoryService; _mapper = mapper; _subCategoryService = subCategoryService; _subCategoryRepository = subCategoryRepository; }
public HomeController(ICategoryMasterService categoryMasterService, IFeedbackService feedbackService, ISubCategoryService subCategoryService, IProductService productService, IHomeService sliderMasterService) : base(productService) { _categoryMasterService = categoryMasterService; _feedbackService = feedbackService; _subCategoryService = subCategoryService; _productService = productService; _sliderService = sliderMasterService; _UseradminService = new UseradminService(); }
public ExamController(ICategoryService categoryService, ISubCategoryService subCategoryService, IQuestionService questionService, IExamTypeService examTypeService, IExamQuestionService examQuestionService, IExamservice examservice, IPackageService packageService) { _categoryService = categoryService; _subCategoryService = subCategoryService; _examTypeService = examTypeService; _examservice = examservice; _packageService = packageService; _examQuestionService = examQuestionService; _questionService = questionService; }
public ProductController(IProductService productService, ISubCategoryService subCategoryService, ICategoryservice categoryService, IBrandService brandService, ICityService cityService, IFileProvider fileProvider, IHostingEnvironment env) { _productService = productService; _brandService = brandService; _categoryService = categoryService; _subCategoryService = subCategoryService; _cityService = cityService; _fileProvider = fileProvider; _env = env; }