コード例 #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));
        }
コード例 #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);
        }