public void GetOneYearArrayTest()
        {
            using (var db = new DatabaseSetup(Utili.GetCurrentMethodAndClass()))
            {
                db.ClearTable(TimeLimit.TableName);
                db.ClearTable(TimeLimitEntry.TableName);
                var temperaturProfiles = db.LoadTemperatureProfiles();
                var timeLimits         = new ObservableCollection <TimeLimit>();
                var dateBasedProfiles  = db.LoadDateBasedProfiles();
                TimeLimit.LoadFromDatabase(timeLimits, dateBasedProfiles, db.ConnectionString, false);
                var geographicLocations = db.LoadGeographicLocations(out _,
                                                                     timeLimits);
                (timeLimits.Count).Should().Be(0);
                var dt = new TimeLimit("hey", db.ConnectionString, Guid.NewGuid().ToStrGuid());
                dt.SaveToDB();

                var dtbe = dt.AddTimeLimitEntry(null, dateBasedProfiles);
                dtbe.AnyAll = AnyAllTimeLimitCondition.Any;
                var dtbe2 = dt.AddTimeLimitEntry(dtbe, dateBasedProfiles);
                dtbe2.RepeaterType      = PermissionMode.EveryXDay;
                dtbe2.DailyDayCount     = 1;
                dtbe2.StartTimeTimeSpan = new TimeSpan(6, 0, 0);
                dtbe2.EndTimeTimeSpan   = new TimeSpan(12, 0, 0);
                var dtbe3 = dt.AddTimeLimitEntry(dtbe, dateBasedProfiles);
                dtbe3.DailyDayCount     = 1;
                dtbe3.StartTimeTimeSpan = new TimeSpan(13, 0, 0);
                dtbe3.EndTimeTimeSpan   = new TimeSpan(14, 0, 0);

                dtbe.Subentries.Add(dtbe2);
                dtbe.Subentries.Add(dtbe2);
                var r   = new Random();
                var vac = new Vacation("vac", null, db.ConnectionString, 1, 99, CreationType.ManuallyCreated, Guid.NewGuid().ToStrGuid());
                vac.SaveToDB();
                vac.AddVacationTime(new DateTime(2014, 3, 1), new DateTime(2014, 5, 1), VacationType.GoAway);
                var timeframes = vac.VacationTimeframes();
                var br         = dtbe.GetOneYearArray(new TimeSpan(1, 0, 0), new DateTime(2014, 1, 1), new DateTime(2014, 2, 1),
                                                      temperaturProfiles[0], geographicLocations[0], r, timeframes, "test", out _, 0, 0, 0, 0);
                for (var i = 0; i < 24; i++)
                {
                    Logger.Info(i + ":" + br[i]);
                }
                db.Cleanup();
            }
        }