public CustomerNotificationArgs(StoreItem item)
 {
     Item = item;
 }
예제 #2
0
 public override void Buy(ICustomer customer, StoreItem item)
 {
     Console.WriteLine($"{customer.Name} bought from {Name} the {item.Name} for {item.Price}$");
 }
예제 #3
0
 public void AddItem(StoreItem item)
 {
     items.Add(item);
     NotifyCustomers(item);
 }
예제 #4
0
 public void Buy(ICustomer customer, StoreItem item)
 {
     Console.WriteLine($"{customer.Name} bought {item.ItemName} for {item.Price}$");
 }
예제 #5
0
 public void AddToStore(StoreItem storeItem)
 {
     storeItems.Add(storeItem);
     NotifyCustomers(storeItem);
 }
예제 #6
0
 public abstract void Buy(ICustomer customer, StoreItem item);