Added AWS queue #108
Annotations
6 errors
Tools.Generators.WebApi.UnitTests.MinimalApiMediatRGeneratorSpec+GivenAServiceCLass ► WhenDefinesAMethodAndClassConstructor_ThenGenerates:
src/Tools.Generators.WebApi.UnitTests/MinimalApiMediatRGeneratorSpec.cs#L424
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az836-807_2023-12-27_03_28_14[1].trx
Error:
Expected string to be "// <auto-generated/>
using System.Threading;
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
using Application.Interfaces;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
private readonly global::<global namespace>.ICallerContext _context;
public AMethod_ARequest_Handler(global::<global namespace>.ICallerContext context)
{
this._context = context;
}
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
var api = new global::ANamespace.AServiceClass(this._context);
var result = await api.AMethod(request, cancellationToken);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
}
" with a length of 2011, but "// <auto-generated/>
using System.Threading;
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
using Application.Interfaces;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.RequireCors("__DefaultCorsPolicy")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
private readonly global::<global namespace>.ICallerContext _context;
public AMethod_ARequest_Handler(global::<global namespace>.ICallerContext context)
{
this._context = context;
}
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
var api = new global::ANamespace.AServiceClass(this._context);
var result = await api.AMethod(request, cancellationToken);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
}
" has a length of 2064, differs near "Req" (index 585).
|
Tools.Generators.WebApi.UnitTests.MinimalApiMediatRGeneratorSpec+GivenAServiceCLass ► WhenDefinesAMethodAndTestingOnly_ThenGenerates:
src/Tools.Generators.WebApi.UnitTests/MinimalApiMediatRGeneratorSpec.cs#L337
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az836-807_2023-12-27_03_28_14[1].trx
Error:
Expected string to be "// <auto-generated/>
using System.Threading;
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
#if TESTINGONLY
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
#endif
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
#if TESTINGONLY
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
var api = new global::ANamespace.AServiceClass();
var result = await api.AMethod(request, cancellationToken);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
#endif
}
" with a length of 1783, but "// <auto-generated/>
using System.Threading;
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.RequireCors("__DefaultCorsPolicy")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
#if TESTINGONLY
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
#endif
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
#if TESTINGONLY
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
var api = new global::ANamespace.AServiceClass();
var result = await api.AMethod(request, cancellationToken);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
#endif
}
" has a length of 1836, differs near "Req" (index 554).
|
Tools.Generators.WebApi.UnitTests.MinimalApiMediatRGeneratorSpec+GivenAServiceCLass ► WhenDefinesAMethodWithAsyncTaskReturnTypeAndCancellationToken_ThenGenerates:
src/Tools.Generators.WebApi.UnitTests/MinimalApiMediatRGeneratorSpec.cs#L263
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az836-807_2023-12-27_03_28_14[1].trx
Error:
Expected string to be "// <auto-generated/>
using System.Threading;
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
var api = new global::ANamespace.AServiceClass();
var result = await api.AMethod(request, cancellationToken);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
}
" with a length of 1733, but "// <auto-generated/>
using System.Threading;
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.RequireCors("__DefaultCorsPolicy")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
var api = new global::ANamespace.AServiceClass();
var result = await api.AMethod(request, cancellationToken);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
}
" has a length of 1786, differs near "Req" (index 554).
|
Tools.Generators.WebApi.UnitTests.MinimalApiMediatRGeneratorSpec+GivenAServiceCLass ► WhenDefinesAMethodWithAsyncTaskReturnTypeAndNoCancellationToken_ThenGenerates:
src/Tools.Generators.WebApi.UnitTests/MinimalApiMediatRGeneratorSpec.cs#L190
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az836-807_2023-12-27_03_28_14[1].trx
Error:
Expected string to be "// <auto-generated/>
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
var api = new global::ANamespace.AServiceClass();
var result = await api.AMethod(request);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
}
" with a length of 1689, but "// <auto-generated/>
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.RequireCors("__DefaultCorsPolicy")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
var api = new global::ANamespace.AServiceClass();
var result = await api.AMethod(request);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
}
" has a length of 1742, differs near "Req" (index 529).
|
Tools.Generators.WebApi.UnitTests.MinimalApiMediatRGeneratorSpec+GivenAServiceCLass ► WhenDefinesAMethodWithNakedReturnType_ThenGenerates:
src/Tools.Generators.WebApi.UnitTests/MinimalApiMediatRGeneratorSpec.cs#L117
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az836-807_2023-12-27_03_28_14[1].trx
Error:
Expected string to be "// <auto-generated/>
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
await Task.CompletedTask;
var api = new global::ANamespace.AServiceClass();
var result = api.AMethod(request);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
}
" with a length of 1722, but "// <auto-generated/>
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Builder;
using Infrastructure.Web.Api.Interfaces;
using Infrastructure.Web.Api.Common.Extensions;
namespace compilation
{
public static class MinimalApiRegistration
{
public static void RegisterRoutes(this global::Microsoft.AspNetCore.Builder.WebApplication app)
{
var aserviceclassGroup = app.MapGroup(string.Empty)
.WithGroupName("AServiceClass")
.RequireCors("__DefaultCorsPolicy")
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.RequestCorrelationFilter>()
.AddEndpointFilter<global::Infrastructure.Web.Api.Common.ContentNegotiationFilter>();
aserviceclassGroup.MapGet("aroute",
async (global::MediatR.IMediator mediator, [global::Microsoft.AspNetCore.Http.AsParameters] global::ANamespace.ARequest request) =>
await mediator.Send(request, global::System.Threading.CancellationToken.None));
}
}
}
namespace ANamespace.AServiceClassMediatRHandlers
{
public class AMethod_ARequest_Handler : global::MediatR.IRequestHandler<global::ANamespace.ARequest, global::Microsoft.AspNetCore.Http.IResult>
{
public async Task<global::Microsoft.AspNetCore.Http.IResult> Handle(global::ANamespace.ARequest request, global::System.Threading.CancellationToken cancellationToken)
{
await Task.CompletedTask;
var api = new global::ANamespace.AServiceClass();
var result = api.AMethod(request);
return result.HandleApiResult(global::Infrastructure.Web.Api.Interfaces.ServiceOperation.Get);
}
}
}
" has a length of 1775, differs near "Req" (index 529).
|
test
Process completed with exit code 1.
|