Example #1
0
 public void CorrectAmountCalculating()
 {
     Wallet wallet = new Wallet(1, 2, 3, 4);
     Assert.AreEqual(286, wallet.getAmount());
     Wallet secondWallet = new Wallet(1, 0, 1, 1);
     Assert.AreEqual(76, secondWallet.getAmount());
     Wallet thirdWallet = new Wallet(0, 0, 0, 0);
     Assert.AreEqual(0, thirdWallet.getAmount());
 }
Example #2
0
 //Constructor
 public Customer()
 {
     wallet   = new Wallet(5, 50, 20, 20, 10);
     backpack = new Backpack();
 }
 public Customer()
 {
     backpack = new Backpack();
     wallet   = new Wallet();
 }
Example #4
0
 //Constructor
 public Customer()
 {
     wallet   = new Wallet();
     backPack = new Backpack();
 }