Esempio n. 1
0
        public void Book_Test()
        {
            ///Arrange
            int    PaymentType    = 2;
            string paymentProcess = "";
            //Act
            IPayment paymentProcessing = FactoryPaymentType.GetPaymentObject(PaymentType);

            if (paymentProcessing != null)
            {
                paymentProcess = "Created Duplicate Packaging slip for royalty department successfully Commssion Payment to agent done successfully";
            }
            //Assert
            Assert.AreEqual(paymentProcess, "Created Duplicate Packaging slip for royalty department successfully Commssion Payment to agent done successfully");
        }
Esempio n. 2
0
        public void Membership_Test()
        {
            ///Arrange
            int    PaymentType    = 3;
            string paymentProcess = "";
            //Act

            IPayment paymentProcessing = FactoryPaymentType.GetPaymentObject(PaymentType);

            if (paymentProcessing != null)
            {
                paymentProcess = "Membership activated successfully e-mail sent to the owner for Membership Activated";
            }

            //Assert
            Assert.AreEqual(paymentProcess, "Membership activated successfully e-mail sent to the owner for Membership Activated");
        }