public ProductOptionsController()
 {
     _productOptionsRepository = new ProductOptionsRepository();
     _productOptionsService    = new ProductOptionsService();
 }
示例#2
0
 public ProductOptionsController()
 {
     _productOptionService = new ProductOptionsService();
 }
 public ProductsController(ILogger <ProductsController> logger, IProductsService productsService, IProductOptionsService productOptionsService)
 {
     _logger                = logger;
     _productsService       = productsService;
     _productOptionsService = productOptionsService;
 }
示例#4
0
 public ProductsController(IProductsService products, IProductOptionsService options)
 {
     _products = products;
     _options  = options;
 }
示例#5
0
 public void SetUp()
 {
     _repo    = new Mock <IProductOptionsRepository>(MockBehavior.Strict);
     _service = new ProductOptionsService(_repo.Object);
 }
示例#6
0
 public ProductOptionsController(IProductOptionsService productOptionsService)
 {
     _productOptionsService = productOptionsService;
 }
 public ProductOptionsController(IProductOptionsService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }