From 9e286143f9ff499ba36bfe1b5ada4296b0a1e1a1 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Tue, 27 Oct 2026 14:09:09 +0000 Subject: [PATCH] Fix domain event endpoint test serialization --- .../ControllerTests/DomainEventEndpointTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TransactionProcessor.Tests/ControllerTests/DomainEventEndpointTests.cs b/TransactionProcessor.Tests/ControllerTests/DomainEventEndpointTests.cs index e078fe15..7e27fb10 100644 --- a/TransactionProcessor.Tests/ControllerTests/DomainEventEndpointTests.cs +++ b/TransactionProcessor.Tests/ControllerTests/DomainEventEndpointTests.cs @@ -127,7 +127,7 @@ private static async Task CreateApplication(params IDomainEventH private static async Task PostDomainEvent(HttpClient client, DomainEvent domainEvent, String eventType = null) { - String json = StringSerialiser.Serialise(domainEvent); + String json = StringSerialiser.Serialise(domainEvent, new SerialiserOptions(SerialiserPropertyFormat.CamelCase)); using StringContent content = new(json, Encoding.UTF8, "application/json"); using HttpRequestMessage request = new(HttpMethod.Post, "/api/domainevents") {