Exemple #1
0
 static void Main(string[] args)
 {
     //Test
     ProductCatalog pc = new ProductCatalog();
     pc.AddProduct(50.00,"2kg Kale"); //Test item
     CustomerCatalog cc = new CustomerCatalog();
     cc.AddCustomer("Test Test",0,1.05); //Test Costumer
     Store s = new Store(pc,cc);
     Register r = s.Getregister();
     r.MakenewSale(0); //Makes Costumer the "owner" of the sale ie. the items bought
     r.EnterItem("2kg Kale",2);
     r.MakePayment(50);
     r.EndSale();
     r.PrintReceipt(0);
     Console.ReadKey();
 }
Exemple #2
0
 public Register(ProductCatalog pc, CustomerCatalog cc)
 {
     this.pc = pc;
     this.cc = cc;
 }
Exemple #3
0
 public Store(ProductCatalog pc, CustomerCatalog cc)
 {
     r = new Register(pc,cc);
 }