public void CreateSeries_Weekly()
    {
        var now     = DateTime.Now;
        var endDate = now.AddDays(23);

        var diaryEvent = new DiaryEvent
        {
            Subject   = "Test Event",
            StartTime = now,
            EndTime   = now.AddHours(1)
        };

        var model = new DiaryEventModel(diaryEvent);

        var series = model.CreateSeries(EventFrequency.Weekly, endDate);

        Assert.That(series, Has.Count.EqualTo(4));
    }
    public void CreateSeries_AllDay_Daily()
    {
        var now     = DateTime.Now;
        var endDate = now.AddDays(23);

        var diaryEvent = new DiaryEvent
        {
            Subject   = "Test Event",
            StartTime = now.Date,
            EndTime   = now.GetEndOfDay()
        };

        var model = new DiaryEventModel(diaryEvent);

        var series = model.CreateSeries(EventFrequency.Daily, endDate);

        Assert.That(series, Has.Count.EqualTo(24));
    }