public Customer(ICustomerClassificationCalculator calculator) { if (calculator == null) { throw new ArgumentNullException("calculator", "Calculator cannot be null"); } this.calculator = calculator; }
public Order(DateTime orderDate, DateTime requiredDate, DateTime shippedDate, decimal freight, string shipName, string shipAddress, string shipCity, string shipRegion, string shipPostalCode, string shipCountry, Customer customer, ICustomerClassificationCalculator calculator) { this.orderDate = orderDate; this.requiredDate = requiredDate; this.shippedDate = shippedDate; this.freight = freight; this.shipName = shipName; this.shipAddress = shipAddress; this.shipCity = shipCity; this.shipRegion = shipRegion; this.shipPostalCode = shipPostalCode; this.shipCountry = shipCountry; this.customer = customer; this.calculator = calculator; }
public Order(DateTime orderDate, DateTime requiredDate, DateTime shippedDate, decimal freight, string shipName, string shipAddress, string shipCity, string shipRegion, string shipPostalCode, string shipCountry, Customer customer, ICustomerClassificationCalculator calculator) { this.orderDate = orderDate; this.requiredDate = requiredDate; this.shippedDate = shippedDate; this.freight = freight; this.shipName = shipName; this.shipAddress = shipAddress; this.shipCity = shipCity; this.shipRegion = shipRegion; this.shipPostalCode = shipPostalCode; this.shipCountry = shipCountry; this.customer = customer; this.calculator = calculator; }
public Customer(ICustomerClassificationCalculator calculator) { if (calculator == null) { throw new ArgumentNullException("calculator", "Calculator cannot be null"); } this.calculator = calculator; }