Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MessagingService.Client/MessagingService.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ClientProxyBase" Version="2025.10.3" />
<PackageReference Include="ClientProxyBase" Version="2025.11.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="Shared.Results" Version="2025.10.3" />
<PackageReference Include="Shared.Results" Version="2025.11.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="Shared.EventStore" Version="2025.10.3" />
<PackageReference Include="Shared.EventStore" Version="2025.11.3" />
<PackageReference Include="Shouldly" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Shared" Version="2025.10.3" />
<PackageReference Include="Shared.DomainDrivenDesign" Version="2025.10.3" />
<PackageReference Include="Shared" Version="2025.11.3" />
<PackageReference Include="Shared.DomainDrivenDesign" Version="2025.11.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<ItemGroup>
<PackageReference Include="Grpc.Net.Client" Version="2.71.0" />
<PackageReference Include="Shared" Version="2025.10.3" />
<PackageReference Include="Shared.EventStore" Version="2025.10.3" />
<PackageReference Include="Shared" Version="2025.11.3" />
<PackageReference Include="Shared.EventStore" Version="2025.11.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Shared.IntegrationTesting" Version="2025.10.3" />
<PackageReference Include="Shared.IntegrationTesting" Version="2025.11.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ClientProxyBase" Version="2025.10.3" />
<PackageReference Include="ClientProxyBase" Version="2025.11.3" />
<PackageReference Include="Ductus.FluentDocker" Version="2.85.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="Reqnroll.Tools.MsBuild.Generation" Version="3.2.0" />
Expand All @@ -16,7 +16,7 @@
<PackageReference Include="Reqnroll.NUnit" Version="3.2.0" />
<PackageReference Include="SecurityService.Client" Version="2025.10.1" />
<PackageReference Include="SecurityService.IntegrationTesting.Helpers" Version="2025.10.1" />
<PackageReference Include="Shared.IntegrationTesting" Version="2025.10.3" />
<PackageReference Include="Shared.IntegrationTesting" Version="2025.11.3" />
<PackageReference Include="Shouldly" Version="4.3.0" />
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Shared.DomainDrivenDesign" Version="2025.10.3" />
<PackageReference Include="Shared.DomainDrivenDesign" Version="2025.11.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="Grpc.Net.Client" Version="2.71.0" />
<PackageReference Include="Shared.EventStore" Version="2025.10.3" />
<PackageReference Include="Shared.EventStore" Version="2025.11.3" />
</ItemGroup>

<ItemGroup>
Expand Down
13 changes: 10 additions & 3 deletions MessagingService.Tests/General/BootstrapperTests.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
using System;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Microsoft.AspNetCore.Routing;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using Microsoft.AspNetCore.Routing.Patterns;

namespace MessagingService.Tests.General
{
using System.Diagnostics;
using System.Linq;
using Lamar;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Abstractions;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using Moq;
using System.Diagnostics;
using System.Linq;
using Testing;
using Xunit;

Expand Down
1 change: 1 addition & 0 deletions MessagingService.Tests/MessagingService.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.3.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.10" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.10" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
Expand Down
24 changes: 12 additions & 12 deletions MessagingService/Bootstrapper/MiddlewareRegistry.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.Extensions.Logging;
using Shared.Authorisation;

namespace MessagingService.Bootstrapper
{
Expand Down Expand Up @@ -43,20 +44,10 @@ public MiddlewareRegistry() {
failureStatus: HealthStatus.Unhealthy,
tags: new string[] { "db", "eventstore" });


this.AddControllers();
this.ConfigureAuthentication();
this.ConfigureSwagger();

this.AddControllers().AddNewtonsoftJson(options =>
{
options.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
options.SerializerSettings.TypeNameHandling = TypeNameHandling.Auto;
options.SerializerSettings.Formatting = Formatting.Indented;
options.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc;
options.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
});

Assembly assembly = this.GetType().GetTypeInfo().Assembly;
this.AddMvcCore().AddApplicationPart(assembly).AddControllersAsServices();

bool logRequests = ConfigurationReader.GetValueOrDefault<Boolean>("MiddlewareLogging", "LogRequests", true);
bool logResponses = ConfigurationReader.GetValueOrDefault<Boolean>("MiddlewareLogging", "LogResponses", true);
Expand Down Expand Up @@ -92,8 +83,17 @@ private void ConfigureAuthentication() {
};
options.IncludeErrorDetails = true;
});
this.AddClientCredentialsOnlyPolicy();
this.AddClientCredentialsHandler();

this.ConfigureHttpJsonOptions(options =>
{
options.SerializerOptions.PropertyNamingPolicy = new SnakeCaseNamingPolicy();
options.SerializerOptions.PropertyNameCaseInsensitive = true; // optional, but safer
});
}
private void ConfigureSwagger() {

this.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo
Expand Down
162 changes: 0 additions & 162 deletions MessagingService/Controllers/DomainEventController.cs

This file was deleted.

Loading
Loading