diff --git a/Directory.Packages.props b/Directory.Packages.props index 8d135d4..444dd1c 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -8,7 +8,7 @@ - + @@ -18,13 +18,13 @@ - + - - - + + + diff --git a/tests/Immediate.Apis.FunctionalTests/Program.cs b/tests/Immediate.Apis.FunctionalTests/Program.cs index 3afc673..0eacf9d 100644 --- a/tests/Immediate.Apis.FunctionalTests/Program.cs +++ b/tests/Immediate.Apis.FunctionalTests/Program.cs @@ -3,7 +3,7 @@ var builder = WebApplication.CreateBuilder(args); // Add services to the container. -builder.Services.AddHandlers(); +builder.Services.AddImmediateApisFunctionalTestsHandlers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); diff --git a/tests/Immediate.Apis.Tests/Directory.Packages.props b/tests/Immediate.Apis.Tests/Directory.Packages.props index 405c010..af06a99 100644 --- a/tests/Immediate.Apis.Tests/Directory.Packages.props +++ b/tests/Immediate.Apis.Tests/Directory.Packages.props @@ -9,7 +9,7 @@ - + @@ -25,12 +25,12 @@ - - - - + + + + - + diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeConstructorTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithAuthorizeNamedPolicyArgumentTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ApiAuthorizeTests.MapMethodWithSimpleAuthorizeTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/CustomizeEndpointsTests.MapMethodCustomizeEndpointTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesAuthenticationSchemes_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.AuthorizeUsesRoles_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs deleted file mode 100644 index 840b02f..0000000 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ /dev/null @@ -1,24 +0,0 @@ -//HintName: IH.ServiceCollectionExtensions.g.cs -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; - -#pragma warning disable CS1591 - -public static class HandlerServiceCollectionExtensions -{ - public static IServiceCollection AddBehaviors( - this IServiceCollection services) - { - - return services; - } - - public static IServiceCollection AddHandlers( - this IServiceCollection services, - ServiceLifetime lifetime = ServiceLifetime.Scoped - ) - { - - return services; - } -} diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Get#IH.ServiceCollectionExtensions.g.verified.cs deleted file mode 100644 index 840b02f..0000000 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ /dev/null @@ -1,24 +0,0 @@ -//HintName: IH.ServiceCollectionExtensions.g.cs -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; - -#pragma warning disable CS1591 - -public static class HandlerServiceCollectionExtensions -{ - public static IServiceCollection AddBehaviors( - this IServiceCollection services) - { - - return services; - } - - public static IServiceCollection AddHandlers( - this IServiceCollection services, - ServiceLifetime lifetime = ServiceLifetime.Scoped - ) - { - - return services; - } -} diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs deleted file mode 100644 index 840b02f..0000000 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ /dev/null @@ -1,24 +0,0 @@ -//HintName: IH.ServiceCollectionExtensions.g.cs -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; - -#pragma warning disable CS1591 - -public static class HandlerServiceCollectionExtensions -{ - public static IServiceCollection AddBehaviors( - this IServiceCollection services) - { - - return services; - } - - public static IServiceCollection AddHandlers( - this IServiceCollection services, - ServiceLifetime lifetime = ServiceLifetime.Scoped - ) - { - - return services; - } -} diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Post#IH.ServiceCollectionExtensions.g.verified.cs deleted file mode 100644 index 840b02f..0000000 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ /dev/null @@ -1,24 +0,0 @@ -//HintName: IH.ServiceCollectionExtensions.g.cs -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; - -#pragma warning disable CS1591 - -public static class HandlerServiceCollectionExtensions -{ - public static IServiceCollection AddBehaviors( - this IServiceCollection services) - { - - return services; - } - - public static IServiceCollection AddHandlers( - this IServiceCollection services, - ServiceLifetime lifetime = ServiceLifetime.Scoped - ) - { - - return services; - } -} diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Put#IH.ServiceCollectionExtensions.g.verified.cs deleted file mode 100644 index 840b02f..0000000 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.MissingHandlerAttribute_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ /dev/null @@ -1,24 +0,0 @@ -//HintName: IH.ServiceCollectionExtensions.g.cs -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; - -#pragma warning disable CS1591 - -public static class HandlerServiceCollectionExtensions -{ - public static IServiceCollection AddBehaviors( - this IServiceCollection services) - { - - return services; - } - - public static IServiceCollection AddHandlers( - this IServiceCollection services, - ServiceLifetime lifetime = ServiceLifetime.Scoped - ) - { - - return services; - } -} diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.cs b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.cs index d008f49..6a602f3 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/InvalidCodeTests.cs @@ -29,9 +29,7 @@ private static ValueTask Handle( """); Assert.Equal( - [ - @"Immediate.Handlers.Generators/Immediate.Handlers.Generators.ImmediateHandlers.ImmediateHandlersGenerator/IH.ServiceCollectionExtensions.g.cs", - ], + [], result.GeneratedTrees.Select(t => t.FilePath.Replace('\\', '/')) ); diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.AsParametersTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromBodyTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromFormTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromHeaderTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromQueryTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.FromRouteTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/ParameterAttributeTests.IFormFileTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapCustomMethodHandleAsyncTest#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapCustomMethodHandleAsyncTest#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapCustomMethodHandleAsyncTest#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapCustomMethodHandleAsyncTest#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapCustomMethodHandleTest#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapCustomMethodHandleTest#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapCustomMethodHandleTest#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapCustomMethodHandleTest#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleAsyncTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMethodHandleTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 92b8ec1..473ff67 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 92b8ec1..473ff67 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 92b8ec1..473ff67 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 92b8ec1..473ff67 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 92b8ec1..473ff67 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/SimpleApiTests.MapMultipleHandlersTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Delete#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Get#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Patch#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Post#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped ) diff --git a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs index 7caa942..96e0a6b 100644 --- a/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs +++ b/tests/Immediate.Apis.Tests/GeneratorTests/TransformResultTests.TransformTest_method=Put#IH.ServiceCollectionExtensions.g.verified.cs @@ -6,14 +6,14 @@ public static class HandlerServiceCollectionExtensions { - public static IServiceCollection AddBehaviors( + public static IServiceCollection AddTestsBehaviors( this IServiceCollection services) { return services; } - public static IServiceCollection AddHandlers( + public static IServiceCollection AddTestsHandlers( this IServiceCollection services, ServiceLifetime lifetime = ServiceLifetime.Scoped )