GetAlertTime() public static method

public static GetAlertTime ( DateTime appointment, AlertLevel alertLevel ) : DateTime
appointment DateTime
alertLevel AlertLevel
return DateTime
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }