Contact: ontvangstadres uit de site-instellingen (instelling > env), PUT /contact-settings/recipient en Berichten-veld (CMS-U11)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,13 +20,14 @@ public class ContactSettingsServiceTests
|
||||
public ContactDbContext Db { get; } = new(new DbContextOptionsBuilder<ContactDbContext>()
|
||||
.UseInMemoryDatabase(Guid.NewGuid().ToString()).Options);
|
||||
public ContactSettingsCache Cache { get; }
|
||||
public IContactMailSignal Signal { get; } = Substitute.For<IContactMailSignal>();
|
||||
public ContactSettingsService Sut { get; }
|
||||
|
||||
public Setup()
|
||||
{
|
||||
Cache = new ContactSettingsCache(Time);
|
||||
Sut = new ContactSettingsService(
|
||||
new ContactRepository(Db), Cache, Microsoft.Extensions.Options.Options.Create(Options), Time);
|
||||
new ContactRepository(Db), Cache, Microsoft.Extensions.Options.Options.Create(Options), Time, Signal);
|
||||
}
|
||||
|
||||
public void Dispose() => Db.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user