public void RemoveFeeTest() { Customer c1 = UserControl.GetAllCustomer().FirstOrDefault(); UserControl.ApplyFee(c1, 10); Assert.AreNotEqual(c1.Fee, 0); UserControl.RemoveFee(c1); Assert.AreEqual(c1.Fee, 0); }
public void ApplyFeeTest() { Customer c1 = UserControl.GetAllCustomer().FirstOrDefault(); int feeIni = c1.Fee; int feeFin = 10; int feeTot = feeIni + feeFin; UserControl.ApplyFee(c1, feeFin); Assert.AreEqual(c1.Fee, feeTot); }