コード例 #1
0
        public void GivenAInvalidOpeningHourIsReadyToBeSubmitted()
        {
            var openingTime = new LocalTimeModel(10, 0);
            var closingTime = openingTime.PlusHours(-1);
            var openingHour = new TimeSlotModel(IsoDayOfWeek.Monday, openingTime, closingTime);

            ScenarioCache.Store(ModelKeys.OpeningHours, openingHour);
        }
コード例 #2
0
 /// <summary>
 /// Converts LocalTimeModel to LocalTime
 /// </summary>
 /// <param name="instance">The instance.</param>
 /// <returns></returns>
 public static LocalTime ToEntity(this LocalTimeModel instance)
 {
     return(new LocalTime(instance.Hour, instance.Minute));
 }