예제 #1
0
        public void ReturnExpensivePaymentGateway_IfAmountIsGreaterThanTwentyOneAndLessThanOrEqualTOFiveHundred()
        {
            var gateway = new PaymentProcessor();


            var returnedtype = gateway.GetPayment(300);

            Assert.IsInstanceOf(typeof(ExpensicePaymentGateWay), returnedtype);
        }
예제 #2
0
        public void ReturnPremiumPaymentGateway_IfAmountIsGreaterThanFiveHundred()
        {
            var gateway = new PaymentProcessor();


            var returnedtype = gateway.GetPayment(900);

            Assert.IsInstanceOf(typeof(PremiumPaymentGateway), returnedtype);
        }
예제 #3
0
        public void ReturnCheapPaymentGateway_IfAmountIsLessThanTwenty()
        {
            var gateway = new PaymentProcessor();


            var returnedtype = gateway.GetPayment(15);

            Assert.IsInstanceOf(typeof(CheapPaymentGateway), returnedtype);
        }