GetAlertTime() public static method

public static GetAlertTime ( DateTime appointment, AlertLevel alertLevel ) : DateTime
appointment DateTime
alertLevel AlertLevel
return DateTime
Example #1
0
 public void GetAlertTime_standard()
 {
     Assert.Equal(new DateTime(2019, 07, 25, 14, 15, 0),
                  Appointment.GetAlertTime(new DateTime(2019, 7, 25, 16, 0, 0),
                                           AlertLevel.Standard));
 }
Example #2
0
 public void GetAlertTime_late()
 {
     Assert.Equal(new DateTime(2019, 07, 25, 15, 30, 0),
                  Appointment.GetAlertTime(new DateTime(2019, 7, 25, 16, 0, 0),
                                           AlertLevel.Late));
 }
Example #3
0
 public void GetAlertTime_early()
 {
     Assert.Equal(new DateTime(2019, 07, 24, 16, 0, 0),
                  Appointment.GetAlertTime(new DateTime(2019, 7, 25, 16, 0, 0),
                                           AlertLevel.Early));
 }