Esempio n. 1
0
        public Price(decimal basePrice)
        {
            BasePrice = basePrice;
#pragma warning disable CS0436 // Type conflicts with imported type
            OngoingSale = new NoSale();
#pragma warning restore CS0436 // Type conflicts with imported type
        }
Esempio n. 2
0
 public Price(decimal basePrice, ISaleStrategy salesStrategy)
 {
     BasePrice   = basePrice;
     OngoingSale = salesStrategy;
 }
Esempio n. 3
0
 public Product(ISaleStrategy saleStrategy)
 {
     this.saleStrategy = saleStrategy;
 }
Esempio n. 4
0
 public Customer(ISaleStrategy saleStrategy)
 {
     articles      = new List <decimal>();
     _saleStrategy = saleStrategy;
 }