Example #1
0
        public void CreatePayment()
        {
            PaymentContext pc = new PaymentContext();

            var bank     = pc.CreatePayment(PaymentMethodsEnum.Bank);
            var visa     = pc.CreatePayment(PaymentMethodsEnum.Visa) as ViewResult;
            var terminal = pc.CreatePayment(PaymentMethodsEnum.IBox) as ViewResult;

            Assert.IsInstanceOf <ActionAsPdf>(bank);
            Assert.AreEqual("VisaPayForm", visa.ViewName);
            Assert.AreEqual("IBoxTerminalPayForm", terminal.ViewName);
        }