public SalesOrderPaymentService(UnitOfWork unitOfWork, ICustomerService customerService, IProductService productService, IChequeService chequeService ) { this.unitOfWork = unitOfWork; this.customerService = customerService; this.productService = productService; this.chequeService = chequeService; }
public SalesOrderValidator(IChequeService chequeService) { this.chequeService = chequeService; RuleFor(x => x.SalesOrder.CustomerId) .NotNull() .WithMessage("Customer Name is required"); RuleFor(x => x.SalesOrder.AmountPaid) .Must(AmountPaid) .WithMessage("Check amount paid"); RuleFor(x => x.ChequeId) .Must(cheque) .WithMessage("Invalid Cheque"); }
public SalesOrderController(IProductService productService, ICustomerService customerService, ISalesOrderService salesOrderService, ISalesOrderDetailService salesOrderDetailService, IChequeService chequeService ) { this.productService = productService; this.customerService = customerService; this.salesOrderService = salesOrderService; this.salesOrderDetailService = salesOrderDetailService; this.chequeService = chequeService; }
protected override void OnStart(string[] args) { Debugger.Launch(); _garbagePath = ConfigurationManager.AppSettings["GarbagePath"]; _completePath = ConfigurationManager.AppSettings["CompletePath"]; var folderPath = ConfigurationManager.AppSettings["FolderPath"]; _chequeService = new ChequeServiceClient(); var fileWatcher = new FileSystemWatcher { Path = folderPath, IncludeSubdirectories = false, Filter = "*.*", NotifyFilter = NotifyFilters.CreationTime | NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.Attributes | NotifyFilters.DirectoryName | NotifyFilters.FileName | NotifyFilters.Security | NotifyFilters.Size }; fileWatcher.Created += OnChanged; fileWatcher.EnableRaisingEvents = true; _logger.LogInformation("Start watch in {folderPath}, garbage path : {_garbagePath}, complete path : {_completePath} ", folderPath, _garbagePath, _completePath); }
public ChequeController(IChequeService service) { _service = service; }
public ChequeController(IChequeService chequeService) { _chequeService = chequeService; }
public ChequesController(ApplicationDbContext db, IChequeService chequeService) : base(db) { _chequeService = chequeService; }
public ReportsController(IChequeService chequeService, ISalesOrderService salesOrderService) { this.chequeService = chequeService; this.salesOrderService = salesOrderService; }
public ChequesController(IChequeService chequeService) { this.chequeService = chequeService; }
public ChequeApplicationService(IChequeService chequeService) : base(chequeService) { _chequeService = chequeService; }
public ChequeGridViewComponent(IChequeService chequeService) { this.chequeService = chequeService; }