Exemple #1
0
        public void TestUpgradeMembership()
        {
            object inputs = string.Empty;
            IPaymanentOrderProcessing orderProcessing = Helper(PaymentProductType.MembershipUpgrade, RuleEngineType.UpgradeMembership, inputs);
            object actual   = orderProcessing.Run();
            object expected = "Membership Upgraded";

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void TestLearningSki()
        {
            object inputs = string.Empty;
            IPaymanentOrderProcessing orderProcessing = Helper(PaymentProductType.VideoLearning, RuleEngineType.LearningToSki, inputs);
            object actual   = orderProcessing.Run();
            object expected = "Added free First Aid video to the packing slip";

            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void TestGenerateDuplicatePackSlip()
        {
            object inputs = string.Empty;
            IPaymanentOrderProcessing orderProcessing = Helper(PaymentProductType.PhysicalProduct, RuleEngineType.GenerateDuplicatePackSlip, inputs);
            object actual   = orderProcessing.Run();
            object expected = "Duplicate Packing Slip for Shipping is ";

            Assert.AreEqual(expected, actual);
        }