public void Email()
        {
            int      intupgreadeEmail = BRE_Paytypes.VariationPayment.upgreadeEmail.GetHashCode();
            IPaytype ObjPay           = CreatingPaymentObjects(intupgreadeEmail);
            bool     testResult       = ObjPay.ActivatePayment();

            Assert.AreEqual(testResult, true);
        }
        public void PhysicalProducts()
        {
            int      intphysicalproduct = BRE_Paytypes.VariationPayment.physicalproduct.GetHashCode();
            IPaytype ObjPay             = CreatingPaymentObjects(intphysicalproduct);
            bool     testResult         = ObjPay.ActivatePayment();

            Assert.AreEqual(testResult, true);
        }
        public void RoyaltyBook()
        {
            int      intBook    = BRE_Paytypes.VariationPayment.book.GetHashCode();
            IPaytype ObjPay     = CreatingPaymentObjects(intBook);
            bool     testResult = ObjPay.ActivatePayment();

            Assert.AreEqual(testResult, true);
        }
        public void MembershipUpgration()
        {
            int      intUpgradation = BRE_Paytypes.VariationPayment.upgradation.GetHashCode();
            IPaytype ObjPay         = CreatingPaymentObjects(intUpgradation);
            bool     testResult     = ObjPay.ActivatePayment();

            Assert.AreEqual(testResult, true);
        }
        public void VideoLearningKit()
        {
            int      intVideLearningKit = BRE_Paytypes.VariationPayment.firstaidvideo.GetHashCode();
            IPaytype ObjPay             = CreatingPaymentObjects(intVideLearningKit);
            bool     testResult         = ObjPay.ActivatePayment();

            Assert.AreEqual(testResult, true);
        }
Exemple #6
0
        static void FinalDetails(int intPay)
        {
            IPaytype FinalDet = BRE_Paytypes.CreatingPaymentObjects(intPay);

            if (FinalDet == null)
            {
                Console.WriteLine("Not Correct selection");
            }
            else
            {
                FinalDet.ActivatePayment();
            }
        }