private void Seed()
        {
            var gosho = new Customer("George");
            gosho.Purchases.Add(new Purchase("Corkscrew", 20));
            gosho.Purchases.Add(new Purchase("Audi A6", 3000.00));

            var peyo = new Customer("Peyo");
            peyo.Purchases.Add(new Purchase("Sheets", 415.50));

            var tania = new Customer("Tania");
            tania.Purchases.Add(new Purchase("Ropes", 99.90));
            tania.Purchases.Add(new Purchase("Fifty Shades of Gray", 129.80));
            tania.Purchases.Add(new Purchase("Intimate Nerve Stimulant", 455.90));
            tania.Discount = 3.3;

            this.customers.Add(gosho);
            this.customers.Add(peyo);
            this.customers.Add(tania);
        }
 public void Visit(Customer customer)
 {
     customer.Discount += 5;
 }
Esempio n. 3
0
 public void Visit(Customer customer)
 {
     customer.Purchases.Add(new Purchase("SteamOp", 0.0));
 }
Esempio n. 4
0
 public void Visit(Customer customer)
 {
     customer.RaiseDiscount(0.5);
 }
Esempio n. 5
0
 public abstract void Visit(Customer customer);
 public override void Visit(Customer customer)
 {
     customer.AddFreePurchase(new Purchase("SteamOp", 0.0));
 }
 public override void Visit(Customer customer)
 {
     customer.RaiseDiscount(5.0);
 }