public void CanEnterValidVoucher() { //Arrange Cart cart = new Cart(); CartController controller = new CartController(null, null, null, null, null, null); //Action String voucherResponse = controller.VoucherCheck("PD201401062"); //Assert Assert.AreEqual("Voucher PD201401062 is a valid code. GREAT DEAL!", voucherResponse); }
public void CanEnterInvalidVoucher() { //Arrange Cart cart = new Cart(); CartController controller = new CartController(null, null, null, null, null, null); //Action String voucherResponse = controller.VoucherCheck("PD1401062"); //Assert Assert.AreEqual("Voucher 'PD1401062' is not a valid code.", voucherResponse); }