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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user