public void ValidExist()
        {
            //create a new instance of the class we want to create
            clsBookings ABookings = new clsBookings();
            //string variable to store result of validation
            string OK = "";
            //create some test data to assign to property
            string PaymentType = "LE";
            string Ammount     = "23.50";
            string DateBooked  = DateTime.Now.Date.ToString();

            //invoke method
            OK = ABookings.Valid(Ammount, DateBooked, PaymentType);
            //test to see if it exists
            Assert.AreEqual(OK, "");
        }
        public void BookingsAmmountInvalidData()
        {
            //create an instance of new class we want to create
            clsBookings ABookings = new clsBookings();
            //string variable to store the results of the validation
            string OK = "";
            //create some test data to assign to property
            string PaymentType = "a";
            string Ammount     = "sddfgthjjfghb";
            string DateBooked  = DateTime.Now.Date.ToString();

            //invoke method
            OK = ABookings.Valid(Ammount, DateBooked, PaymentType);
            //test to see if result correct
            Assert.AreNotEqual(OK, "");
        }
        public void BookingsPaymentExtremeMax()
        {
            //create an instance of new class we want to create
            clsBookings ABookings = new clsBookings();
            //string variable to store the results of the validation
            string OK = "";
            //create some test data to assign to property
            string PaymentType = "";

            PaymentType = PaymentType.PadRight(100, 'a');
            string Ammount    = "23.50";
            string DateBooked = DateTime.Now.Date.ToString();

            //invoke method
            OK = ABookings.Valid(Ammount, DateBooked, PaymentType);
            //test to see if result correct
            Assert.AreNotEqual(OK, "");
        }
        public void BookingsDateBookedInvalidData()
        {
            //create an instance of new class we want to create
            clsBookings ABookings = new clsBookings();
            //string variable to store the results of the validation
            string OK = "";
            //create some test data to assign to property
            string PaymentType = "12345";
            string Ammount     = "23.50";
            //vaiable to store test date data
            string SomeDate;

            //set test date as todays daye
            SomeDate = "ytytyrtyr";
            string DateBooked = SomeDate.ToString();

            //invoke the method
            OK = ABookings.Valid(Ammount, DateBooked, PaymentType);
            //test to see if result correct
            Assert.AreNotEqual(OK, "");
        }
        public void BookingsDateBookedExtremeMax()
        {
            //create an instance of new class we want to create
            clsBookings ABookings = new clsBookings();
            //string variable to store the results of the validation
            string OK = "";
            //create some test data to assign to property
            string PaymentType = "12345";
            string Ammount     = "23.50";
            //vaiable to store test date data
            DateTime SomeDate;

            //set test date as todays daye
            SomeDate = DateTime.Now.Date;
            //change to date the whatever date is 100 years in the future
            SomeDate = SomeDate.AddYears(+100);
            //Convert data  to a string variable
            string DateBooked = SomeDate.ToString();

            //invoke the method
            OK = ABookings.Valid(Ammount, DateBooked, PaymentType);
            //test to see if result correct
            Assert.AreNotEqual(OK, "");
        }