Refactor test dependency resolution in DocSignedNotificationTests

Refactored DocSignedNotificationTests to use typed repository
retrieval and explicit service resolution for PsPdfKitAnnotation.
Added a Services property to TestBase for easier access to
IServiceProvider. These changes improve clarity and robustness
of test dependency management.
This commit is contained in:
2026-01-19 15:56:12 +01:00
parent 9cfdd16970
commit 32b488c50f
2 changed files with 11 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ public abstract class TestBase : Faker
protected IRepository Repository => Host.Services.GetRequiredService<IRepository>();
protected IServiceProvider Services => Host.Services;
protected abstract void ConfigureServices(IServiceCollection services);
[SetUp]