From 4be8b44df4a15a93c98bce3c1f69439372f09301 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sat, 22 Nov 2025 11:15:31 +1100 Subject: [PATCH] make verified file paths shorter --- ...eCommandsTests.MapContractExplicitly.verified.txt} | 0 ...ts.MapContractExplicitlyWithoutRoute.verified.txt} | 0 ...xplicitlyWithoutRouteWithGenericAttr.verified.txt} | 0 .../AggregateCommandsTests.cs | 11 ++++++----- 4 files changed, 6 insertions(+), 5 deletions(-) rename src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/{AggregateCommandsTests.MapAggregateContractToCommandExplicitlyWithoutRouteWithGenericAttr_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt => AggregateCommandsTests.MapContractExplicitly.verified.txt} (100%) rename src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/{AggregateCommandsTests.MapAggregateContractToCommandExplicitlyWithoutRoute_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt => AggregateCommandsTests.MapContractExplicitlyWithoutRoute.verified.txt} (100%) rename src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/{AggregateCommandsTests.MapAggregateContractToCommandExplicitly_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt => AggregateCommandsTests.MapContractExplicitlyWithoutRouteWithGenericAttr.verified.txt} (100%) diff --git a/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapAggregateContractToCommandExplicitlyWithoutRouteWithGenericAttr_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt b/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapContractExplicitly.verified.txt similarity index 100% rename from src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapAggregateContractToCommandExplicitlyWithoutRouteWithGenericAttr_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt rename to src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapContractExplicitly.verified.txt diff --git a/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapAggregateContractToCommandExplicitlyWithoutRoute_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt b/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapContractExplicitlyWithoutRoute.verified.txt similarity index 100% rename from src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapAggregateContractToCommandExplicitlyWithoutRoute_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt rename to src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapContractExplicitlyWithoutRoute.verified.txt diff --git a/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapAggregateContractToCommandExplicitly_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt b/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapContractExplicitlyWithoutRouteWithGenericAttr.verified.txt similarity index 100% rename from src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapAggregateContractToCommandExplicitly_factory=Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1[Program].verified.txt rename to src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.MapContractExplicitlyWithoutRouteWithGenericAttr.verified.txt diff --git a/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.cs b/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.cs index 646dca2f..bd02fa94 100644 --- a/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.cs +++ b/src/Extensions/test/Eventuous.Tests.Extensions.AspNetCore/AggregateCommandsTests.cs @@ -9,7 +9,7 @@ namespace Eventuous.Tests.Extensions.AspNetCore; [ClassDataSource>] public class AggregateCommandsTests(WebApplicationFactory factory) : TestBaseWithLogs { [Test] - public async Task MapAggregateContractToCommandExplicitly() { + public async Task MapContractExplicitly() { var fixture = new ServerFixture( factory, _ => { }, @@ -22,7 +22,7 @@ public async Task MapAggregateContractToCommandExplicitly() { } [Test] - public async Task MapAggregateContractToCommandExplicitlyWithoutRoute() { + public async Task MapContractExplicitlyWithoutRoute() { var fixture = new ServerFixture( factory, _ => { }, @@ -35,7 +35,7 @@ public async Task MapAggregateContractToCommandExplicitlyWithoutRoute() { } [Test] - public async Task MapAggregateContractToCommandExplicitlyWithoutRouteWithGenericAttr() { + public async Task MapContractExplicitlyWithoutRouteWithGenericAttr() { var fixture = new ServerFixture( factory, _ => { }, @@ -48,7 +48,7 @@ public async Task MapAggregateContractToCommandExplicitlyWithoutRouteWithGeneric } [Test] - public void MapAggregateContractToCommandExplicitlyWithoutRouteWithWrongGenericAttr() { + public void MapContractExplicitlyWithoutRouteWithWrongGenericAttr() { Assert.Throws(Act); return; @@ -92,6 +92,7 @@ static async Task Execute(ServerFixture fixture, string route) { ); var content = await fixture.ExecuteRequest(import, route, bookRoom.BookingId); - await VerifyJson(content); + await VerifyJson(content) + .IgnoreParameters(); } }