Ejemplo n.º 1
0
        public ProductsService(IProductRespository productRespository, IUnitOfWork unitOfWork)


        {
            _productRespository = productRespository;
            this._unitOfWork    = unitOfWork;
        }
Ejemplo n.º 2
0
 public ProductService(
     IProductRespository repository,
     IValidationProvider validationProvider)
 {
     this.repository         = repository;
     this.validationProvider = validationProvider;
 }
Ejemplo n.º 3
0
        public ProductRespositoryTests()
        {
            _mockLogger           = new Mock <ILogger <ProductRespository> >(MockBehavior.Loose);
            _mockHttpClientHelper = new Mock <IHttpClientHelper>(MockBehavior.Strict);

            var options = new Mock <IOptions <AppSettings> >();

            options.Setup(s => s.Value).Returns(new AppSettings
            {
                BaseUrl          = "www.foo.com",
                ProductsEndPoint = "products",
                Token            = "Foo.Token"
            });

            _sut = new ProductRespository(_mockHttpClientHelper.Object, options.Object, _mockLogger.Object);
        }
Ejemplo n.º 4
0
 public ProductService(IProductRespository productRespository)
 {
     this._productRespository = productRespository;
 }
Ejemplo n.º 5
0
 public UnitOfWork(string connectionString)
 {
     ProductRepository = new ProductRespository(connectionString);
 }
 public CatalogController(IProductRespository productRespository, ILogger <CatalogController> logger)
 {
     _productRespository = productRespository ?? throw new ArgumentNullException(nameof(productRespository));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Ejemplo n.º 7
0
 public ProductController(IProductRespository productRepository)
 {
     this.repository = productRepository;
 }
Ejemplo n.º 8
0
 public ProductService(IProductRespository IPR)
 {
     IproductR = IPR;
 }
 public NoDbProductService(IProductRespository productRespository)
 {
     _productRespository = productRespository;
 }
Ejemplo n.º 10
0
 //public TestBackgroundTask(ILogger<TestBackgroundTask> logger, IEventBus eventBus,IProductRespository context)
 public TestBackgroundTask(ILogger <TestBackgroundTask> logger, IEventBus eventBus, IProductRespository context)
 {
     _logger   = logger ?? throw new ArgumentNullException(nameof(logger));
     _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
     _context  = context;
 }
 public ProductService(IProductRespository productRepository, IMapper mapper)
 {
     _productRepository = productRepository;
     _mapper            = mapper;
 }
Ejemplo n.º 12
0
 public PresenterGetProductByName(IProductRespository IproductR, IGetProductByName view)
 {
     productService = new ProductService(IproductR);
     _view          = view;
 }
Ejemplo n.º 13
0
 public CreateProductHandler(IProductRespository productRespository)
 {
     _productRespository = productRespository;
 }
Ejemplo n.º 14
0
 public DeleteProductCommandHandler(IProductRespository productRespository)
 {
     _productRespository = productRespository;
 }
Ejemplo n.º 15
0
 public ProductService(IUnitOfWork iUnitOfWork, IProductRespository iRespository)
 {
     _iRespository = iRespository;
     _iUnitOfWork  = iUnitOfWork;
 }
Ejemplo n.º 16
0
 public UpdateProductHandler(IProductRespository productRespository)
 {
     _productRepository = productRespository;
 }
Ejemplo n.º 17
0
 public PresenterAddProduct(IProductRespository IproductR, IAddProductView view)
 {
     productService = new ProductService(IproductR);
     _view          = view;
 }
Ejemplo n.º 18
0
 public PresenterProductByFk(IProductRespository IPR, IGetProductByFk Iget)
 {
     productService = new ProductService(IPR);
     _view          = Iget;
 }
Ejemplo n.º 19
0
 public PresenterDeleteProduct(IProductRespository IproductR, IDeleteProduct view)
 {
     productService = new ProductService(IproductR);
     _view          = view;
 }
Ejemplo n.º 20
0
 public CartController(IProductRespository repo)
 {
     repository = repo;
 }
Ejemplo n.º 21
0
 public ProductsController(IProductRespository productRepository)
 {
     _productRepsitory = productRepository;
 }
Ejemplo n.º 22
0
 public GetProductByIdRequestHandler(IProductRespository productRespository, IMapper mapper)
 {
     _productRespository = productRespository;
     _mapper             = mapper;
 }
Ejemplo n.º 23
0
 public ProductProvider(IProductRespository productRespository)
 {
     _productRespository = productRespository;
 }
 public ProductBusiness(IProductRespository ProductGroupRes)
 {
     _res = ProductGroupRes;
 }
Ejemplo n.º 25
0
 public CartController(IProductRespository repo, IOrderProcessor proc)
 {
     repository     = repo;
     orderProcessor = proc;
 }
 public ProductCatalogLogic(IProductRespository repository)
 {
     ProductRepository = repository;
 }
Ejemplo n.º 27
0
 public ProductServices(IProductRespository productRespository)
 {
     _productRepository = productRespository;
 }
 // Constructor
 public ProductsController(IProductRespository repo)
 {
     _repo = repo;
 }
 public ProductService(IProductRespository productRespository, ICacheStorage cacheStorage)
 {
     _productRespository = productRespository;
     _cacheStorage       = cacheStorage;
 }
Ejemplo n.º 30
0
 public CreateProductCommandHandler(IProductRespository productRespository, ICategoryRepository categoryRepository, IMapper mapper)
 {
     _productRespository = productRespository;
     _categoryRepository = categoryRepository;
     _mapper             = mapper;
 }
Ejemplo n.º 31
0
 public ProductsService(IProductRespository productRespository, IShopperRespository shopperRespository)
 {
     _productRespository = productRespository;
     _shopperRespository = shopperRespository;
 }