style(data): apply dotnet format whitespace rules

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 10:09:54 +00:00
1 parent 2fbb7bc179
commit 49fa8c5214
5 files changed
+97 -52

No files matched your search

@@ -32,11 +32,26 @@ public abstract class CatalogRepositoryTests(TestContext context) : RepositoryTe
await db.Archives.UpsertAsync(archive, Ct);
var sequence = TestData.Sequence(archive.Id, new DateTime(2026, 9, 28, 18, 30, 15, 250), "Harbour sunset") with
{
CameraSerial = "0123", Lens = "RF 24-70", FrameCount = 1200, MedianInterval = 5.0, TotalBytes = 30_000_000_000,
Status = SequenceStatus.AnalyzedLight | SequenceStatus.ThumbsBuilt, RenderedCount = 0, VerifiedAt = TestData.Now,
HeroFrameId = Guid.CreateVersion7(), Rating = 4, Notes = "windy", SettingsJson = "{\"fps\": 25, \"deflicker\": true}",
AnalysisJson = "{\"ev\": [12.5, 13]}", Origin = SequenceOrigin.Server, SyncState = SyncState.LocalAhead,
SettingsVersion = 3, FramesVersion = 7, OwnerUserId = Guid.CreateVersion7(), WarningCount = 2, Tags = ["Sunset", "harbour", "SUNSET"],
CameraSerial = "0123",
Lens = "RF 24-70",
FrameCount = 1200,
MedianInterval = 5.0,
TotalBytes = 30_000_000_000,
Status = SequenceStatus.AnalyzedLight | SequenceStatus.ThumbsBuilt,
RenderedCount = 0,
VerifiedAt = TestData.Now,
HeroFrameId = Guid.CreateVersion7(),
Rating = 4,
Notes = "windy",
SettingsJson = "{\"fps\": 25, \"deflicker\": true}",
AnalysisJson = "{\"ev\": [12.5, 13]}",
Origin = SequenceOrigin.Server,
SyncState = SyncState.LocalAhead,
SettingsVersion = 3,
FramesVersion = 7,
OwnerUserId = Guid.CreateVersion7(),
WarningCount = 2,
Tags = ["Sunset", "harbour", "SUNSET"],
};
await db.Sequences.UpsertAsync(sequence, Ct);
@@ -120,7 +135,8 @@ public abstract class CatalogRepositoryTests(TestContext context) : RepositoryTe
await db.Archives.UpsertAsync(archive, Ct);
var all = Enumerable.Range(0, 23).Select(i => TestData.Sequence(archive.Id,
i % 5 == 4 ? null : new DateTime(2024 + i % 3, 1, 1, 12, 0, 0),
i % 4 == 0 ? null : "T" + (i % 6)) with { FrameCount = i % 3, TotalBytes = i % 4 * 1000L })
i % 4 == 0 ? null : "T" + (i % 6)) with
{ FrameCount = i % 3, TotalBytes = i % 4 * 1000L })
.ToList();
foreach (var s in all) await db.Sequences.UpsertAsync(s, Ct);
@@ -208,9 +224,19 @@ public abstract class CatalogRepositoryTests(TestContext context) : RepositoryTe
var frames = Enumerable.Range(0, 250).Select(i => TestData.Frame(sequence.Id, i)).ToList();
frames[7] = frames[7] with
{
OriginalFileName = "DSC_7.NEF", CapturedAt = new DateTime(2026, 9, 28, 18, 0, 35, 123), UtcOffsetMinutes = 120, ExposureBias = -0.3,
WhiteBalance = 5600, Orientation = 6, PreviewOffset = 1024, PreviewLength = 65536, MeanLogLuminance = -2.5, ClipLow = 0.01,
ClipHigh = 0.02, Flags = FrameFlags.Excluded, Sha256 = "AB" + new string('c', 62),
OriginalFileName = "DSC_7.NEF",
CapturedAt = new DateTime(2026, 9, 28, 18, 0, 35, 123),
UtcOffsetMinutes = 120,
ExposureBias = -0.3,
WhiteBalance = 5600,
Orientation = 6,
PreviewOffset = 1024,
PreviewLength = 65536,
MeanLogLuminance = -2.5,
ClipLow = 0.01,
ClipHigh = 0.02,
Flags = FrameFlags.Excluded,
Sha256 = "AB" + new string('c', 62),
};
Assert.Equal(250L, await db.Frames.BulkInsertAsync(frames, Ct));
var copy = TestData.Frame(sequence.Id, 1000) with { Sha256 = frames[7].Sha256 };