public void ReturnExpensivePaymentGateway_IfAmountIsGreaterThanTwentyOneAndLessThanOrEqualTOFiveHundred() { var gateway = new PaymentProcessor(); var returnedtype = gateway.GetPayment(300); Assert.IsInstanceOf(typeof(ExpensicePaymentGateWay), returnedtype); }
public void ReturnPremiumPaymentGateway_IfAmountIsGreaterThanFiveHundred() { var gateway = new PaymentProcessor(); var returnedtype = gateway.GetPayment(900); Assert.IsInstanceOf(typeof(PremiumPaymentGateway), returnedtype); }
public void ReturnCheapPaymentGateway_IfAmountIsLessThanTwenty() { var gateway = new PaymentProcessor(); var returnedtype = gateway.GetPayment(15); Assert.IsInstanceOf(typeof(CheapPaymentGateway), returnedtype); }