Example #1
0
        public void FoodPaymentInstanceOK()
        {
            //create an instance of the class we want to create
            clsFoodPayment AFoodPayment = new clsFoodPayment();

            //test to see if the data works
            Assert.IsNotNull(AFoodPayment);
        }
Example #2
0
        public void FoodOrderingPropertyOK()
        {
            //create an instance of the class we want to create
            clsFoodPayment AFoodOrdering = new clsFoodPayment();
            //create some test data to assign to the property
            string SomeFoodOrdering = "1";

            AFoodOrdering.FoodOrdering = SomeFoodOrdering;
            //test to see if the two values are the same
            Assert.AreEqual(AFoodOrdering.FoodOrdering, SomeFoodOrdering);
        }
Example #3
0
        public void FoodPaymentExpiryDatePropertyOK()
        {
            //create an instance of the class we want to create
            clsFoodPayment AFoodPayment = new clsFoodPayment();
            //create some test data to assign to the property
            string SomeFoodPayment = "MR V R THOMAS";

            AFoodPayment.ExpiryDate = SomeFoodPayment;
            //test to see if the two values are the same
            Assert.AreEqual(AFoodPayment.ExpiryDate, SomeFoodPayment);
        }
Example #4
0
        public void FoodPaymentAccountNumberPropertyOK()
        {
            //create an instance of the class we want to create
            clsFoodPayment AFoodPayment = new clsFoodPayment();
            //create some test data to assign to the property
            string SomeFoodPayment = "";

            AFoodPayment.AccountNumber = SomeFoodPayment;
            //test to see if the two values are the same
            Assert.AreEqual(AFoodPayment.AccountNumber, SomeFoodPayment);
        }
Example #5
0
        public void FoodPaymentCardVerificationCodePropertyOK()
        {
            //create an instance of the class we want to create
            clsFoodPayment AFoodPayment = new clsFoodPayment();
            //create some test data to assign to the property
            string SomeFoodPayment = "565";

            AFoodPayment.CardVerificationCode = SomeFoodPayment;
            //test to see if the two values are the same
            Assert.AreEqual(AFoodPayment.CardVerificationCode, SomeFoodPayment);
        }
Example #6
0
        public void FoodPaymentIDPropertyOK()
        {
            //create an instance of the class we want to create
            clsFoodPayment AFoodPayment = new clsFoodPayment();
            //create some test data to assign to the property
            Int32 TestData = 21;

            //assign the data to the property
            AFoodPayment.PaymentID = TestData;
            //test to see the two values are the same
            Assert.AreEqual(AFoodPayment.PaymentID, TestData);
        }
Example #7
0
        public void FoodPaymentMaxPlusOne()
        {
            //create an instance of the class we want to create
            clsFoodPayment AFoodPayment = new clsFoodPayment();
            //boolean variable to store the result of the validation
            Boolean OK = false;
            //create some test data to asisgn to the property
            string SomeFoodPayment = "abcdefghijabcdefghijabcdefghijabcdefghij";

            //invoke the method
            OK = AFoodPayment.Valid(SomeFoodPayment);
            //test to see that the result is correct
            Assert.IsTrue(OK);
        }