Fix B2a: Contact.Tests verwees nog naar Api.SlpSoftware; nu echt naar de master-Api. OpenAPI-snapshot: 3 regels (assemblynaam in titel/tags), geen pad of schema gewijzigd

Eerder gemeld als byte-identiek: dat klopte niet, de projectreferentie was bij B2a niet aangepast.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 20:57:17 +01:00
co-authored by Claude Sonnet 5.5
parent 352f84b860
commit c7f0e97478
4 changed files with 22 additions and 5 deletions
@@ -104,6 +104,23 @@ public class ContactMailSenderTests
rig.Sent.Subject.Should().Be("Nieuw bericht via De Site");
}
[Theory]
[InlineData("nl", "Naam:", "E-mailadres:", "Onderwerp:", "Bericht:")]
[InlineData("en", "Name:", "E-mail address:", "Subject:", "Message:")]
public async Task TheDetailLabels_AreTheOnesOfTheMailLanguage(string language, string name, string email, string subject, string message)
{
var rig = new Rig();
await rig.Build(language).SendAsync(Message(), CancellationToken.None);
var lines = rig.Sent!.TextBody!.Replace("\r\n", "\n").Split('\n');
lines.Should().ContainInOrder(name, email, subject, message);
foreach (var label in new[] { name, email, subject, message })
{
rig.Sent.HtmlBody.Should().Contain(">" + label.TrimEnd(':') + "<");
}
}
[Fact]
public async Task TheBody_EncodesHtml_AndKeepsLineBreaks_AndHasATextPart()
{
@@ -33,7 +33,7 @@
<ProjectReference Include="..\SlpModularCms.Modules.Contact\SlpModularCms.Modules.Contact.csproj" />
<!-- Only the composed host is referenced (for the real-pipeline tests); it is the one place
where Contact, Offerings, Availability and the shared hosting meet. -->
<ProjectReference Include="..\SlpModularCms.Api.SlpSoftware\SlpModularCms.Api.SlpSoftware.csproj" />
<ProjectReference Include="..\SlpModularCms.Api\SlpModularCms.Api.csproj" />
</ItemGroup>
</Project>