예제 #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);
        }
예제 #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);
        }
예제 #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);
        }