예제 #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
        }
예제 #2
0
 public Price(decimal basePrice, ISaleStrategy salesStrategy)
 {
     BasePrice   = basePrice;
     OngoingSale = salesStrategy;
 }
예제 #3
0
 public Product(ISaleStrategy saleStrategy)
 {
     this.saleStrategy = saleStrategy;
 }
예제 #4
0
 public Customer(ISaleStrategy saleStrategy)
 {
     articles      = new List <decimal>();
     _saleStrategy = saleStrategy;
 }