Ejemplo n.º 1
0
 public void TestLearnToSkiRule()
 {
     payment   = PaymentFactory.GetPayment(PaymentTypeEnum.LearningToSki);
     returnMsg = payment.ExecuteRule();
     Assert.AreEqual(returnMsg, "LearningToSki Rule");
 }
Ejemplo n.º 2
0
 public void TestUpgradeRule()
 {
     payment   = PaymentFactory.GetPayment(PaymentTypeEnum.Upgrade);
     returnMsg = payment.ExecuteRule();
     Assert.AreEqual(returnMsg, "Upgrade Rule");
 }
Ejemplo n.º 3
0
 public void TestBookRule()
 {
     payment   = PaymentFactory.GetPayment(PaymentTypeEnum.Book);
     returnMsg = payment.ExecuteRule();
     Assert.AreEqual(returnMsg, "Book Rule");
 }
Ejemplo n.º 4
0
 public void TestMembershipRule()
 {
     payment   = PaymentFactory.GetPayment(PaymentTypeEnum.Membership);
     returnMsg = payment.ExecuteRule();
     Assert.AreEqual(returnMsg, "Membership Rule");
 }
Ejemplo n.º 5
0
 public void TestPhysicalRule()
 {
     payment   = PaymentFactory.GetPayment(PaymentTypeEnum.Physical);
     returnMsg = payment.ExecuteRule();
     Assert.AreEqual(returnMsg, "Physical Rule");
 }