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