public ProductLessThenCommand(IProductService productService, IWriter writer, IPramaterValidator validator,
                               ISupplierService supplierService)
 {
     this.productService = productService ?? throw new ArgumentNullException(nameof(productService));
     this.writer         = writer ?? throw new ArgumentNullException(nameof(writer));
     this.validator      = validator ?? throw new ArgumentNullException(nameof(validator));
 }
 public CreateSupplierCommand(ISupplierService supplierService, IWriter writer, IPramaterValidator validator, IReader reader)
 {
     this.supplierService = supplierService ?? throw new ArgumentNullException(nameof(supplierService));
     this.writer          = writer ?? throw new ArgumentNullException(nameof(writer));
     this.validator       = validator ?? throw new ArgumentNullException(nameof(validator));
     this.reader          = reader ?? throw new ArgumentNullException(nameof(reader));
 }
 public CreateCustomerCommand(ICustomerService customerService, IWriter writer, IPramaterValidator validator, IReader reader)
 {
     this.customerService = customerService ?? throw new ArgumentNullException(nameof(customerService));
     this.writer          = writer ?? throw new ArgumentNullException(nameof(writer));
     this.validator       = validator ?? throw new ArgumentNullException(nameof(validator));
     this.reader          = reader ?? throw new ArgumentNullException(nameof(reader));
 }
Example #4
0
 public OrderStornoCommand(IOrderService orderservice, IWriter writer,
                           IPramaterValidator validator, IReader reader)
 {
     this.orderservice = orderservice ?? throw new ArgumentNullException(nameof(orderservice));
     this.writer       = writer ?? throw new ArgumentNullException(nameof(writer));
     this.validator    = validator ?? throw new ArgumentNullException(nameof(validator));
     this.reader       = reader ?? throw new ArgumentNullException(nameof(reader));
 }
Example #5
0
 public PrintOrderAsPDF(IOrderService orderservice, IWriter writer,
                        IPramaterValidator validator, IReader reader, IPrintService print)
 {
     this.orderservice = orderservice ?? throw new ArgumentNullException(nameof(orderservice));
     this.writer       = writer ?? throw new ArgumentNullException(nameof(writer));
     this.validator    = validator ?? throw new ArgumentNullException(nameof(validator));
     this.reader       = reader ?? throw new ArgumentNullException(nameof(reader));
     this.print        = print ?? throw new ArgumentNullException(nameof(print));
 }
 public CreateCategoryCommand(ICategoryService categoryService, IWriter writer, IPramaterValidator validator)
 {
     this.categoryService = categoryService ?? throw new ArgumentNullException(nameof(categoryService));
     this.writer          = writer ?? throw new ArgumentNullException(nameof(writer));
     this.validator       = validator ?? throw new ArgumentNullException(nameof(validator));
 }
 public ShowProductsInCategoryCommand(IProductService productService, IWriter writer, IPramaterValidator validator)
 {
     this.productService = productService ?? throw new ArgumentNullException(nameof(productService));
     this.writer         = writer ?? throw new ArgumentNullException(nameof(writer));
     this.validator      = validator ?? throw new ArgumentNullException(nameof(validator));
 }