public RegisterSupplier(IDatabase database, IAutoServiceFactory factory, IValidateCore coreValidator, IWriter writer)
 {
     this.database      = database ?? throw new ArgumentNullException();
     this.factory       = factory ?? throw new ArgumentNullException();
     this.coreValidator = coreValidator ?? throw new ArgumentNullException();
     this.writer        = writer ?? throw new ArgumentNullException();
 }
 public CreateBankAccount(IDatabase database, IAutoServiceFactory factory, IValidateCore coreValidator, IWriter writer)
 {
     this.database      = database ?? throw new ArgumentNullException();
     this.factory       = factory ?? throw new ArgumentNullException();
     this.coreValidator = coreValidator ?? throw new ArgumentNullException();
     this.writer        = writer ?? throw new ArgumentNullException();
 }
 public AddVehicleToClient(IDatabase database, IWriter writer, IValidateCore coreValidator, IAutoServiceFactory factory, IValidateModel modelValidator)
 {
     this.database       = database ?? throw new ArgumentNullException();
     this.writer         = writer ?? throw new ArgumentNullException();
     this.coreValidator  = coreValidator ?? throw new ArgumentNullException();
     this.modelValidator = modelValidator ?? throw new ArgumentNullException();
     this.factory        = factory ?? throw new ArgumentNullException();
 }
 public HireEmployee(IAutoServiceFactory autoServiceFactory, IDatabase database, IValidateCore coreValidator, IWriter writer, IValidateModel modelValidator)
 {
     this.database           = database ?? throw new ArgumentNullException();
     this.autoServiceFactory = autoServiceFactory ?? throw new ArgumentNullException();
     this.coreValidator      = coreValidator ?? throw new ArgumentNullException();
     this.writer             = writer ?? throw new ArgumentNullException();
     this.modelValidator     = modelValidator ?? throw new ArgumentNullException();
 }
Example #5
0
 public SellStockToClientVehicle(IAutoServiceFactory autoServiceFactory, IDatabase database, IValidateCore coreValidator, IWriter writer, IStockManager stockManager, IValidateModel modelValidator)
 {
     this.database           = database ?? throw new ArgumentNullException();
     this.coreValidator      = coreValidator ?? throw new ArgumentNullException();
     this.writer             = writer ?? throw new ArgumentNullException();
     this.stockManager       = stockManager ?? throw new ArgumentNullException();
     this.autoServiceFactory = autoServiceFactory ?? throw new ArgumentNullException();
     this.modelValidator     = modelValidator ?? throw new ArgumentNullException();
 }
Example #6
0
 //constructor
 private Engine()
 {
     this.factory          = new AutoServiceFactory();
     this.employees        = new List <IEmployee>();
     this.bankAccounts     = new List <BankAccount>();
     this.clients          = new List <ICounterparty>();
     this.suppliers        = new List <ICounterparty>();
     this.notInvoicedSells = new Dictionary <IClient, IList <ISell> >();
     this.warehouse        = new Warehouse();
 }
 public RegisterSupplier(IProcessorLocator processorLocator)
 {
     if (processorLocator == null)
     {
         throw new ArgumentNullException();
     }
     this.database      = processorLocator.GetProcessor <IDatabase>() ?? throw new ArgumentNullException();
     this.factory       = processorLocator.GetProcessor <IAutoServiceFactory>() ?? throw new ArgumentNullException();
     this.coreValidator = processorLocator.GetProcessor <IValidateCore>() ?? throw new ArgumentNullException();
     this.writer        = processorLocator.GetProcessor <IWriter>() ?? throw new ArgumentNullException();
 }
 public SellServiceToClientVehicle(IProcessorLocator processorLocator)
 {
     if (processorLocator == null)
     {
         throw new ArgumentNullException();
     }
     this.database           = processorLocator.GetProcessor <IDatabase>() ?? throw new ArgumentNullException();
     this.coreValidator      = processorLocator.GetProcessor <IValidateCore>() ?? throw new ArgumentNullException();
     this.writer             = processorLocator.GetProcessor <IWriter>() ?? throw new ArgumentNullException();
     this.autoServiceFactory = processorLocator.GetProcessor <IAutoServiceFactory>() ?? throw new ArgumentNullException();
     this.modelValidator     = processorLocator.GetProcessor <IValidateModel>() ?? throw new ArgumentNullException();
 }
 //Constructor
 public OrderStockToWarehouse(IProcessorLocator processorLocator)
 {
     if (processorLocator == null)
     {
         throw new ArgumentNullException();
     }
     this.database           = processorLocator.GetProcessor <IDatabase>() ?? throw new ArgumentNullException();
     this.autoServiceFactory = processorLocator.GetProcessor <IAutoServiceFactory>() ?? throw new ArgumentNullException();
     this.coreValidator      = processorLocator.GetProcessor <IValidateCore>() ?? throw new ArgumentNullException();
     this.writer             = processorLocator.GetProcessor <IWriter>() ?? throw new ArgumentNullException();
     this.stockManager       = processorLocator.GetProcessor <IStockManager>() ?? throw new ArgumentNullException();
     this.modelValidator     = processorLocator.GetProcessor <IValidateModel>() ?? throw new ArgumentNullException();
 }