test(learning): seed authoritative shared question answers

This commit is contained in:
2026-08-03 09:54:27 +08:00
parent c54e223ca1
commit 684f4c2f81

View File

@@ -260,7 +260,8 @@ public sealed class PhaseThreeTenantIsolationTests
TenantId = platformId,
QuestionId = platformQuestionId,
VersionNo = 1,
Content = "platform-v1"
Content = "platform-v1",
CorrectOptionIndex = 0
});
await factory.SeedQuestionWithVersionAsync(
new Question
@@ -276,7 +277,8 @@ public sealed class PhaseThreeTenantIsolationTests
TenantId = tenantId,
QuestionId = privateQuestionId,
VersionNo = 1,
Content = "private-v1"
Content = "private-v1",
CorrectOptionIndex = 0
});
await factory.SeedAsync(
new TenantQuestionReference
@@ -338,7 +340,8 @@ public sealed class PhaseThreeTenantIsolationTests
TenantId = platformId,
QuestionId = platformQuestionId,
VersionNo = 2,
Content = "platform-v2"
Content = "platform-v2",
CorrectOptionIndex = 0
});
using (var scope = factory.CreateSystemScope("Publish platform question V2"))
{