示例#1
0
 /// <summary>
 /// Shows all the appointments planned for today.
 /// </summary>
 private void AppointmentsToday()
 {
     LbAppointments.Items.Clear();
     foreach (string appointment in uiLogic.AppointmentsToday())
     {
         LbAppointments.Items.Add(appointment);
     }
 }
示例#2
0
        public void AppointmentsToday()
        {
            database.Appointments.Clear();

            visitorLogic.AddAppointment("Test123", "Test321", DateTime.Today);
            visitorLogic.AddAppointment("Test126", "Test621", DateTime.Today);
            visitorLogic.AddAppointment("Test124", "Test421", DateTime.Today.AddDays(1));
            visitorLogic.AddAppointment("Test127", "Test721", DateTime.Today.AddDays(-1));

            Assert.IsTrue(todoLogic.AppointmentsToday().Count() == 2);
        }