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; }
protected Order(IEmployee responsibleEmployee, ICounterparty supplier, IValidateModel modelValidator) : base(responsibleEmployee, TypeOfWork.Ordering, modelValidator) { modelValidator.CheckNullObject(supplier); this.supplier = supplier; }
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; }
public OrderStock(IEmployee responsibleEmployee, ICounterparty supplier, IStock stock, IValidateModel modelValidator) : base(responsibleEmployee, supplier, modelValidator) { modelValidator.CheckNullObject(stock); this.stock = stock; }