refactor(learning): split learning capability services

This commit is contained in:
2026-08-04 09:33:55 +08:00
parent 0bd075e20d
commit 087ca78af5
23 changed files with 697 additions and 607 deletions

View File

@@ -328,7 +328,7 @@ public sealed class PhaseThreeTenantIsolationTests
Guid firstSessionId;
using (var scope = factory.CreateTenantScope(tenantId, "tenant-a"))
{
var created = await scope.ServiceProvider.GetRequiredService<ILearningActivityService>()
var created = await scope.ServiceProvider.GetRequiredService<IPracticeSessionService>()
.CreatePracticeSessionAsync(
new LearningActor(tenantId, userId),
new PracticeSessionCommand(
@@ -358,7 +358,7 @@ public sealed class PhaseThreeTenantIsolationTests
Guid secondSessionId;
using (var scope = factory.CreateTenantScope(tenantId, "tenant-a"))
{
var created = await scope.ServiceProvider.GetRequiredService<ILearningActivityService>()
var created = await scope.ServiceProvider.GetRequiredService<IPracticeSessionService>()
.CreatePracticeSessionAsync(
new LearningActor(tenantId, userId),
new PracticeSessionCommand(
@@ -395,4 +395,4 @@ public sealed class PhaseThreeTenantIsolationTests
Mode = mode
};
}
}
}