Model\DashboardDataSourceTests.cs (75)
37using var runStore = CreateRunStore(options);
52using var runStore = CreateRunStore(options);
101using var runStore = CreateRunStore(CreateOptions(workspace, "My Dashboard", persistenceMode));
117using var runStore = CreateRunStore(CreateOptions(workspace), timeProvider);
129using var firstRunStore = CreateRunStore(options, timeProvider);
131var exception = Assert.Throws<InvalidOperationException>(() => CreateRunStore(options, timeProvider));
141using var runStore = CreateRunStore(options);
173using var runStore = CreateRunStore(CreateOptions(workspace, applicationName));
196using (var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt)))
208using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddSeconds(1)));
247using (var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt)))
261using var nextRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMinutes(1)));
272using var runStore = CreateRunStore(options);
330using (var runStore = CreateRunStore(options))
407using var runStore = CreateRunStore(CreateOptions(workspace, persistenceMode: DashboardPersistenceMode.None));
438using var runStore = CreateRunStore(
467using var runStore = CreateRunStore(
474using var nextRunStore = CreateRunStore(
492using var activeRunStore = CreateRunStore(options);
496using var secondRunStore = CreateRunStore(options);
511using var runStore = CreateRunStore(CreateOptions(workspace, persistenceMode: DashboardPersistenceMode.None));
549using (var firstRunStore = CreateRunStore(options))
575using var firstRunStore = CreateRunStore(options);
577var exception = Assert.Throws<InvalidOperationException>(() => CreateRunStore(options));
593using (var firstRunStore = CreateRunStore(options))
626using (var firstRunStore = CreateRunStore(options))
638Assert.Throws<SqliteException>(() => CreateRunStore(options));
644Assert.Throws<SqliteException>(() => CreateRunStore(options));
687using (var historicalRunStore = CreateRunStore(options))
694using var currentRunStore = CreateRunStore(options);
719using (var otherApplicationRunStore = CreateRunStore(
727using (var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMilliseconds(1))))
732using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMilliseconds(2)));
749using (var incompatibleRunStore = CreateRunStore(
763using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt));
792using (var futureRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMinutes(-1))))
809using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt));
834using (var incompatibleRunStore = CreateRunStore(
850using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(-index)));
854using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt));
871using var runStore = CreateRunStore(CreateOptions(workspace));
883using var runStore = CreateRunStore(CreateOptions(workspace));
899using (var historicalRunStore = CreateRunStore(options))
906using var activeRunStore = CreateRunStore(options);
909using var currentRunStore = CreateRunStore(options);
931using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(-index)));
936using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt));
962using var runStore = CreateRunStore(options, new FixedTimeProvider(now));
980using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMilliseconds(index)));
987var activeRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMilliseconds(index)));
994using var currentRunStore = CreateRunStore(
1028using (var runStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(runIndex++))))
1034using var pinningRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(runIndex++)));
1047using var runStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(runIndex++)));
1051using var finalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(runIndex)));
1073using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(-index)));
1077using var activeRunStore = CreateRunStore(
1082using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt));
1099using (var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt)))
1107using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddMilliseconds(1)));
1115using var additionalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(index)));
1148using (var historicalRunStore = CreateRunStore(options))
1155using var currentRunStore = CreateRunStore(options);
1198using (var historicalRunStore = CreateRunStore(options))
1205using var currentRunStore = CreateRunStore(options);
1230using var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(startedAt.AddDays(-index)));
1264using (var malformedRunStore = CreateRunStore(options))
1276using var currentRunStore = CreateRunStore(options);
1308using var currentRunStore = CreateRunStore(options);
1410using (var historicalRunStore = CreateRunStore(options))
1440using var currentRunStore = CreateRunStore(options);
1519using var currentRunStore = CreateRunStore(options);
1539using var currentRunStore = CreateRunStore(options);
1580using (var historicalRunStore = CreateRunStore(options, new FixedTimeProvider(historicalRunTime)))
1585using var currentRunStore = CreateRunStore(options, new FixedTimeProvider(historicalRunTime.AddMilliseconds(1)));