public SalesOrderPaymentService(UnitOfWork unitOfWork, ICustomerService customerService, IProductService productService,
                                 IChequeService chequeService
                                 )
 {
     this.unitOfWork      = unitOfWork;
     this.customerService = customerService;
     this.productService  = productService;
     this.chequeService   = chequeService;
 }
예제 #2
0
 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;
 }
예제 #4
0
        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);
        }
예제 #5
0
 public ChequeController(IChequeService service)
 {
     _service = service;
 }
예제 #6
0
 public ChequeController(IChequeService chequeService)
 {
     _chequeService = chequeService;
 }
예제 #7
0
 public ChequesController(ApplicationDbContext db, IChequeService chequeService) : base(db)
 {
     _chequeService = chequeService;
 }
예제 #8
0
 public ReportsController(IChequeService chequeService, ISalesOrderService salesOrderService)
 {
     this.chequeService     = chequeService;
     this.salesOrderService = salesOrderService;
 }
예제 #9
0
 public ChequesController(IChequeService chequeService)
 {
     this.chequeService = chequeService;
 }
예제 #10
0
 public ChequeApplicationService(IChequeService chequeService) : base(chequeService)
 {
     _chequeService = chequeService;
 }
 public ChequeGridViewComponent(IChequeService chequeService)
 {
     this.chequeService = chequeService;
 }