public ProductUpdatingJob(ILog logger, IProductReader source, IProductWriter destination, IProductUpdatingConfiguration configuration) { _logger = logger; _source = source; _destination = destination; _configuration = configuration; }
public Product GetById(Guid id) { using (IProductReader reader = _productCommunicatorAbstractFactory.CreateProductReader()) { return(reader.GetById(id)); } }
public AddItemCommandHandler( ICartRepository repository, IProductReader productReader, DeliveryCostCalculator deliveryCostCalculator, ICampaignFinderService campaignFinderService) { this.repository = repository; this.productReader = productReader; this.deliveryCostCalculator = deliveryCostCalculator; this.campaignFinderService = campaignFinderService; }
}//CTOR //-------------------------------------------------------------------------------------------------------// public DataManager() { CustomerMap = new MyDictionary <Customer>(); ProductMap = new MyDictionary <Product>(); string baseDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), set.programDir); pfStorageFilePath = Path.Combine(baseDir, set.storageFileName); Directory.CreateDirectory(baseDir); ProductReader = new ODBCProductReader(); InvoiceReader = new ODBCInvoiceReader(); PriceListReader = new ODBCPriceListReader(); }//CTOR
public ProductsController(IProductReader reader) { _reader = reader ?? throw new ArgumentNullException($"{GetType().Name}.Ctor - parameter {nameof(reader)} cannot be null."); }
public ProductManager(IProductWriter productWriter, IProductReader productReader, IProductCodeProvider productCodeProvider) { this.ProductWriter = productWriter; this.ProductReader = productReader; this.ProductCodeProvider = productCodeProvider; }
public GetAllProductQueryProcessor(IProductReader reader) => _reader = reader;
/// <summary> /// Default constructor /// </summary> /// <param name="productReader"></param> /// <param name="availabilityRepository"></param> public ProductRepository(IProductReader productReader, IAvailabilityRepository availabilityRepository) { _productReader = productReader; _availabilityRepository = availabilityRepository; }
public ProductController(IProductReader productReader, IMediator mediator) { this.productReader = productReader; this.mediator = mediator; }