test: share one fake AI api between learning bUnit tests after merging 10b and 10c
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a8f763cfeb
commit
606db3990c
1 file changed
+2
-3
@@ -21,8 +21,8 @@ public abstract class LearningTestBase : BunitContext
|
||||
|
||||
internal FakeLiveConnection Live { get; } = new();
|
||||
|
||||
/// <summary>KI-Status für die Eltern-Prüfansicht; Standard: Foto-Prüfung nicht eingerichtet (kein KI-Knopf).</summary>
|
||||
internal FakeAiApi Ai { get; } = new();
|
||||
/// <summary>Alias von AiApi: KI-Status auch für die Eltern-Prüfansicht (Standard: nichts eingerichtet, kein KI-Knopf).</summary>
|
||||
internal FakeAiApi Ai => AiApi;
|
||||
|
||||
internal ManualTimeProvider Time { get; } = new(FakeLearningApi.Now);
|
||||
|
||||
@@ -33,7 +33,6 @@ public abstract class LearningTestBase : BunitContext
|
||||
Services.AddSingleton<ILearningApi>(Api);
|
||||
Services.AddSingleton<IAiApi>(AiApi);
|
||||
Services.AddSingleton<ILiveConnection>(Live);
|
||||
Services.AddSingleton<IAiApi>(Ai);
|
||||
Services.AddSingleton<IAuthService, NoopAuthService>();
|
||||
Services.AddSingleton<ApiAuthenticationStateProvider>();
|
||||
Services.AddSingleton<TimeProvider>(Time);
|
||||
|
||||
Reference in new issue
Block a user