Ejemplo n.º 1
0
        protected Sell(IEmployee responsibleEmployee, decimal sellPrice, IClient client, IVehicle vehicle, IValidateModel modelValidator)
            : base(responsibleEmployee, TypeOfWork.Selling, modelValidator)
        {
            modelValidator.CheckNullObject(new object[] { client, vehicle });
            modelValidator.SellPrice(sellPrice);

            this.client    = client;
            this.sellPrice = sellPrice;
            this.vehicle   = vehicle;
        }
Ejemplo n.º 2
0
 protected Order(IEmployee responsibleEmployee, ICounterparty supplier, IValidateModel modelValidator)
     : base(responsibleEmployee, TypeOfWork.Ordering, modelValidator)
 {
     modelValidator.CheckNullObject(supplier);
     this.supplier = supplier;
 }
Ejemplo n.º 3
0
 public SellStock(IEmployee responsibleEmployee, IClient client, IVehicle vehicle, IStock stock, IValidateModel modelValidator)
     : base(responsibleEmployee, stock.PurchasePrice * 1.2m, client, vehicle, modelValidator)
 {
     modelValidator.CheckNullObject(stock);
     this.stock = stock;
 }
Ejemplo n.º 4
0
 public OrderStock(IEmployee responsibleEmployee, ICounterparty supplier, IStock stock, IValidateModel modelValidator)
     : base(responsibleEmployee, supplier, modelValidator)
 {
     modelValidator.CheckNullObject(stock);
     this.stock = stock;
 }