public void TestUpgradeEmail() { payment = PaymentFactory.GetPayment(PaymentTypeEnum.Upgrade); email = payment as IEmail; returnMsg = email.SendMail(); Assert.AreEqual(returnMsg, "Upgrade Email"); }
public void TestMembershipEmail() { payment = PaymentFactory.GetPayment(PaymentTypeEnum.Membership); email = payment as IEmail; returnMsg = email.SendMail(); Assert.AreEqual(returnMsg, "Membership Email"); }
public void TestBookCommission() { payment = PaymentFactory.GetPayment(PaymentTypeEnum.Book); commission = payment as ICommission; returnMsg = commission.GenerateCommission(); Assert.AreEqual(returnMsg, "Book Commission"); }
public void should_sort_this_ascending() { //Arrange var card = new Visa() { CCC = "1234" }; var payment = PaymentFactory.GetPayment(card); //Act var message = payment.Pay(20, card, "1111"); //Assert Assert.AreEqual(message.Text, "Operación realizada correctamente"); //context.Pay(22, card, "1111"); }
public void TestLearnToSkiRule() { payment = PaymentFactory.GetPayment(PaymentTypeEnum.LearningToSki); returnMsg = payment.ExecuteRule(); Assert.AreEqual(returnMsg, "LearningToSki Rule"); }
public void TestUpgradeRule() { payment = PaymentFactory.GetPayment(PaymentTypeEnum.Upgrade); returnMsg = payment.ExecuteRule(); Assert.AreEqual(returnMsg, "Upgrade Rule"); }
public void TestMembershipRule() { payment = PaymentFactory.GetPayment(PaymentTypeEnum.Membership); returnMsg = payment.ExecuteRule(); Assert.AreEqual(returnMsg, "Membership Rule"); }
public void TestBookRule() { payment = PaymentFactory.GetPayment(PaymentTypeEnum.Book); returnMsg = payment.ExecuteRule(); Assert.AreEqual(returnMsg, "Book Rule"); }
public void TestPhysicalRule() { payment = PaymentFactory.GetPayment(PaymentTypeEnum.Physical); returnMsg = payment.ExecuteRule(); Assert.AreEqual(returnMsg, "Physical Rule"); }