public void When_setting_last_day_to_submit_nullable() { var utcDate = (DateTime?) new DateTime(2012, 12, 12, 12, 12, 12, 12, DateTimeKind.Utc); DateTime localDate = utcDate.Value.ToLocalTime(); var model = new CallForSpeakers(); model.SetLastDayToSubmit(localDate); model.LastDayToSubmitUtc.Value.ShouldEqual(utcDate.Value.Date); }
public void When_setting_last_day_with_null() { var model = new CallForSpeakers(); model.SetLastDayToSubmit(null); model.LastDayToSubmitUtc.ShouldBeNull(); }