Beispiel #1
0
 public Customer(ICustomerClassificationCalculator calculator)
 {
     if (calculator == null)
     {
         throw new ArgumentNullException("calculator", "Calculator cannot be null");
     }
     this.calculator = calculator;
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 public Customer(ICustomerClassificationCalculator calculator)
 {
     if (calculator == null)
     {
         throw new ArgumentNullException("calculator", "Calculator cannot be null");
     }
     this.calculator = calculator;
 }