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") {