Model\DashboardDataSourceTests.cs (56)
35using var runStore = CreateRunStore(options);
73using var runStore = CreateRunStore(CreateOptions(workspace, "My Dashboard", persistenceMode));
86using var runStore = CreateRunStore(CreateOptions(workspace), timeProvider);
98using var firstRunStore = CreateRunStore(options, timeProvider);
100var exception = Assert.Throws<InvalidOperationException>(() => CreateRunStore(options, timeProvider));
110using var runStore = CreateRunStore(options);
141using (var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt)))
155using var nextRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMinutes(1)));
166using var runStore = CreateRunStore(options);
224using (var runStore = CreateRunStore(options))
301using var runStore = CreateRunStore(CreateOptions(workspace, persistenceMode: DashboardPersistenceMode.None));
319using var activeRunStore = CreateRunStore(options);
323using var secondRunStore = CreateRunStore(options);
338using var runStore = CreateRunStore(CreateOptions(workspace, persistenceMode: DashboardPersistenceMode.None));
376using (var firstRunStore = CreateRunStore(options))
402using var firstRunStore = CreateRunStore(options);
404var exception = Assert.Throws<InvalidOperationException>(() => CreateRunStore(options));
418using (var firstRunStore = CreateRunStore(options))
450using (var firstRunStore = CreateRunStore(options))
462Assert.Throws<SqliteException>(() => CreateRunStore(options));
468Assert.Throws<SqliteException>(() => CreateRunStore(options));
511using (var historicalRunStore = CreateRunStore(options))
518using var currentRunStore = CreateRunStore(options);
541using var runStore = CreateRunStore(CreateOptions(workspace));
553using var runStore = CreateRunStore(CreateOptions(workspace));
569using (var historicalRunStore = CreateRunStore(options))
576using var activeRunStore = CreateRunStore(options);
579using var currentRunStore = CreateRunStore(options);
607using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(-index)));
612using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt));
632using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMilliseconds(index)));
639var activeRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMilliseconds(index)));
646using var currentRunStore = CreateRunStore(
679using (var runStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(runIndex++))))
685using var pinningRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(runIndex++)));
698using var runStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(runIndex++)));
702using var finalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(runIndex)));
724using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(-index)));
728using var activeRunStore = CreateRunStore(
733using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt));
750using (var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt)))
758using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMilliseconds(1)));
766using var additionalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(index)));
799using (var historicalRunStore = CreateRunStore(options))
806using var currentRunStore = CreateRunStore(options);
849using (var historicalRunStore = CreateRunStore(options))
856using var currentRunStore = CreateRunStore(options);
881using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(-index)));
915using (var malformedRunStore = CreateRunStore(options))
927using var currentRunStore = CreateRunStore(options);
959using var currentRunStore = CreateRunStore(options);
1061using (var historicalRunStore = CreateRunStore(options))
1091using var currentRunStore = CreateRunStore(options);
1169using var currentRunStore = CreateRunStore(options);
1192using (var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(historicalRunTime)))
1197using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(historicalRunTime.AddMilliseconds(1)));