コード例 #1
0
ファイル: RoleService.cs プロジェクト: ilyogri/SoftUni
 public RoleService(
     ChameleonStoreContext context,
     IMapper mapper,
     IDropDownListable dropDownService)
     : base(context, mapper)
 {
     this.dropDownService = dropDownService;
 }
コード例 #2
0
 public AdminProductServiceTest()
 {
     this.context             = MockDbContext.GetContext();
     this.mapper              = MockAutoMapper.GetAutoMapper();
     this.dropDownService     = new DropDownListService(this.context, this.mapper);
     this.productService      = new ProductService(this.context, this.mapper);
     this.adminProductService = new AdminProductService(this.context, this.mapper, this.productService, this.dropDownService);
 }
コード例 #3
0
 public AdminProductService(
     ChameleonStoreContext context,
     IMapper mapper,
     IProductService products,
     IDropDownListable dropDownService)
     : base(context, mapper)
 {
     this.products        = products;
     this.dropDownService = dropDownService;
 }
コード例 #4
0
 public ProductsController(
     ChameleonStoreContext context,
     IMapper mapper,
     IAdminProductService products,
     IDropDownListable dropDownService)
 {
     this.context         = context;
     this.mapper          = mapper;
     this.products        = products;
     this.dropDownService = dropDownService;
 }