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)); }
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); }