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