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); }
/// <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)); }