VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: TransformResultTests.TransformTest_method=Post#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: TransformResultTests.TransformTest_method=Post#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: TransformResultTests.TransformTest_method=Post#RoutesBuilder.g.received.cs
Verified: TransformResultTests.TransformTest_method=Post#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: TransformResultTests.TransformTest_method=Post#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPost(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Verified: TransformResultTests.TransformTest_method=Post#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPost(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Received: TransformResultTests.TransformTest_method=Post#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: TransformResultTests.TransformTest_method=Post#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: TransformResultTests.TransformTest_method=Put#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: TransformResultTests.TransformTest_method=Put#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: TransformResultTests.TransformTest_method=Put#RoutesBuilder.g.received.cs
Verified: TransformResultTests.TransformTest_method=Put#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: TransformResultTests.TransformTest_method=Put#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPut(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Verified: TransformResultTests.TransformTest_method=Put#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPut(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Received: TransformResultTests.TransformTest_method=Put#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: TransformResultTests.TransformTest_method=Put#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: TransformResultTests.TransformTest_method=Patch#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: TransformResultTests.TransformTest_method=Patch#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: TransformResultTests.TransformTest_method=Patch#RoutesBuilder.g.received.cs
Verified: TransformResultTests.TransformTest_method=Patch#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: TransformResultTests.TransformTest_method=Patch#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPatch(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Verified: TransformResultTests.TransformTest_method=Patch#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPatch(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Received: TransformResultTests.TransformTest_method=Patch#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: TransformResultTests.TransformTest_method=Patch#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: TransformResultTests.TransformTest_method=Delete#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: TransformResultTests.TransformTest_method=Delete#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: TransformResultTests.TransformTest_method=Delete#RoutesBuilder.g.received.cs
Verified: TransformResultTests.TransformTest_method=Delete#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: TransformResultTests.TransformTest_method=Delete#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapDelete(
"/test",
async (
[AsParameters] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[AsParameters]</c></remarks>
partial class GetUsersQuery;
}
Verified: TransformResultTests.TransformTest_method=Delete#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapDelete(
"/test",
async (
[AsParameters] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[AsParameters]</c></remarks>
partial class GetUsersQuery;
}
Received: TransformResultTests.TransformTest_method=Delete#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: TransformResultTests.TransformTest_method=Delete#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: TransformResultTests.TransformTest_method=Get#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: TransformResultTests.TransformTest_method=Get#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: TransformResultTests.TransformTest_method=Get#RoutesBuilder.g.received.cs
Verified: TransformResultTests.TransformTest_method=Get#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: TransformResultTests.TransformTest_method=Get#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapGet(
"/test",
async (
[AsParameters] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[AsParameters]</c></remarks>
partial class GetUsersQuery;
}
Verified: TransformResultTests.TransformTest_method=Get#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapGet(
"/test",
async (
[AsParameters] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return global::Dummy.GetUsersQuery.TransformResult(ret);
}
);
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[AsParameters]</c></remarks>
partial class GetUsersQuery;
}
Received: TransformResultTests.TransformTest_method=Get#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: TransformResultTests.TransformTest_method=Get#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#RoutesBuilder.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapDelete(
"/test",
async (
[AsParameters] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[AsParameters]</c></remarks>
partial class GetUsersQuery;
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapDelete(
"/test",
async (
[AsParameters] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[AsParameters]</c></remarks>
partial class GetUsersQuery;
}
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Delete#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#RoutesBuilder.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapGet(
"/test",
async (
[AsParameters] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[AsParameters]</c></remarks>
partial class GetUsersQuery;
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapGet(
"/test",
async (
[AsParameters] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[AsParameters]</c></remarks>
partial class GetUsersQuery;
}
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Get#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#RoutesBuilder.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPost(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPost(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Post#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#RoutesBuilder.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPut(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPut(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Put#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less
VerifyException : Directory: /home/runner/work/Immediate.Apis/Immediate.Apis/tests/Immediate.Apis.Tests/GeneratorTests
NotEqual:
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
- Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#RoutesBuilder.g.received.cs
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#RoutesBuilder.g.verified.cs
FileContent:
NotEqual:
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#RouteBuilder.Dummy_GetUsersQuery.g.received.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPatch(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#RouteBuilder.Dummy_GetUsersQuery.g.verified.cs
//HintName: RouteBuilder.Dummy_GetUsersQuery.g.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder
{
public static partial class TestsRoutesBuilder
{
private static void MapDummy_GetUsersQueryEndpoint(IEndpointRouteBuilder app)
{
var endpoint = app
.MapPatch(
"/test",
async (
[FromBody] global::Dummy.GetUsersQuery.Query parameters,
[FromServices] global::Dummy.GetUsersQuery.Handler handler,
CancellationToken token
) =>
{
var ret = await handler.HandleAsync(parameters, token);
return ret;
}
);
_ = endpoint.AllowAnonymous();
}
}
}
namespace Dummy
{
/// <remarks><see cref="global::Dummy.GetUsersQuery.Query" /> registered using <c>[FromBody]</c></remarks>
partial class GetUsersQuery;
}
Received: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#RoutesBuilder.g.received.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Verified: ApiAllowAnonymousTests.MapMethodWithAllowAnonymousTest_method=Patch#RoutesBuilder.g.verified.cs
//HintName: RoutesBuilder.g.cs
using Microsoft.AspNetCore.Mvc;
#pragma warning disable CS1591
namespace Microsoft.AspNetCore.Builder;
public static partial class TestsRoutesBuilder
{
public static IEndpointRouteBuilder MapTestsEndpoints(
this IEndpointRouteBuilder app
)
{
MapDummy_GetUsersQueryEndpoint(app);
return app;
}
}
Show more
Show less