예제 #1
0
        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);
        }
예제 #2
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);
        }