Esempio n. 1
0
        public void TestCheckBooking()
        {
            Booking lBooking = new Booking(lTutorName, lStudentName, lPrice);
            Day     lMonday  = new Day();

            lMonday.AddBookings(lBooking);

            Assert.IsTrue(lMonday.CheckBookings("anothertutor"));
            Assert.IsFalse(lMonday.CheckBookings(lTutorName));
        }
Esempio n. 2
0
        public void TestAddandGet()
        {
            Booking lBooking = new Booking(lTutorName, lStudentName, lPrice);

            Day lMonday = new Day();

            lMonday.AddBookings(lBooking);

            Assert.AreEqual(lMonday.getBooking(lStudentName, false), lBooking);
            Assert.AreEqual(lMonday.getBooking(lTutorName, true), lBooking);
        }