예제 #1
0
        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);
        }
예제 #2
0
 public void When_setting_last_day_with_null()
 {
     var model = new CallForSpeakers();
     model.SetLastDayToSubmit(null);
     model.LastDayToSubmitUtc.ShouldBeNull();
 }