/// <summary> /// Initializes a new instance of /// type ProductPricesService. /// </summary> /// <param name="ProductPricesRepository"></param> /// <param name="unitOfWork"></param> public ProductPricesService( IProductPricesRepository ProductPricesRepository, ILanguageService languageService, IUnitOfWork unitOfWork) { this._ProductPricesRepository = ProductPricesRepository; this._languageService = languageService; this._unitOfWork = unitOfWork; }
public ProductsTest() { _settings = new ProductsDatabaseSettings { ProductsCollectionName = "Products", ProductsPricesCollectionName = "ProductsPrices", ConnectionString = "mongodb://localhost:27017", DatabaseName = "SupermarketProducts" }; _productRepository = new ProductRepository(_settings); _productPricesRepository = new ProductPricesRepository(_settings); }
public GetProductPricesUseCase(IProductPricesRepository repository) { _repository = repository; }
public ProductDetailsManager(IProductPricesRepository productPricesRepository, IRedSkyRepository redSkyRepository) { _productPricesRepository = productPricesRepository; _redSkyRepository = redSkyRepository; }
public ProductPriceStrategyService(IProductPricesRepository productPriceRepository) { _productPriceRepository = productPriceRepository; }
/// <summary> /// Init product service /// </summary> /// <param name="productRepository">Product repository instance</param> /// <param name="productPricesRepository">Product prices repository instance</param> public ProductService(IProductRepository productRepository, IProductPricesRepository productPricesRepository) { _productRepository = productRepository; _productPricesRepository = productPricesRepository; }