4 instantiations of InferredJsonClass
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
EndpointMetadataApiDescriptionProviderTest.cs (4)
146
AssertJsonResponse(GetApiDescription(() => new
InferredJsonClass
()), typeof(InferredJsonClass));
189
() => new
InferredJsonClass
());
207
() => new
InferredJsonClass
());
236
() => Results.Ok(new
InferredJsonClass
()));
44 references to InferredJsonClass
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (44)
EndpointMetadataApiDescriptionProviderTest.cs (44)
73
(
InferredJsonClass
fromBody) =>
87
(
InferredJsonClass
fromBody) =>
105
[Consumes(typeof(
InferredJsonClass
), "application/custom0", "application/custom1", IsOptional = true)]
120
[Consumes(typeof(
InferredJsonClass
), "application/custom0", "application/custom1", IsOptional = false)]
121
(
InferredJsonClass
fromBody) =>
146
AssertJsonResponse(GetApiDescription(() => new InferredJsonClass()), typeof(
InferredJsonClass
));
223
Assert.Equal(typeof(
InferredJsonClass
), badRequestResponseType.Type);
224
Assert.Equal(typeof(
InferredJsonClass
), badRequestResponseType.ModelMetadata?.ModelType);
234
[ProducesResponseType(typeof(
InferredJsonClass
), StatusCodes.Status201Created)]
243
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.Type);
244
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.ModelMetadata?.ModelType);
446
AssertBodyParameter(GetApiDescription((
InferredJsonClass
foo) => { }), "foo", typeof(
InferredJsonClass
));
462
var apiDescription = GetApiDescription(([FromRoute] int foo, int bar,
InferredJsonClass
fromBody) => { });
481
Assert.Equal(typeof(
InferredJsonClass
), fromBodyParam.Type);
482
Assert.Equal(typeof(
InferredJsonClass
), fromBodyParam.ModelMetadata.ModelType);
512
Assert.Equal(typeof(
InferredJsonClass
), param.Type);
513
Assert.Equal(typeof(
InferredJsonClass
), param.ModelMetadata.ModelType);
692
builder.MapGet("/api/todos", () => "").Produces<
InferredJsonClass
>().WithGroupName(endpointGroupName);
708
Assert.Equal(typeof(
InferredJsonClass
), responseTypes.Type);
717
builder.MapGet("/api/todos", () => "").Produces<
InferredJsonClass
>().ExcludeFromDescription();
740
.Produces<
InferredJsonClass
>(StatusCodes.Status200OK)
762
Assert.Equal(typeof(
InferredJsonClass
), responseType.Type);
792
.Produces<
InferredJsonClass
>(StatusCodes.Status200OK)
793
.Produces<
InferredJsonClass
>(StatusCodes.Status201Created);
812
Assert.Equal(typeof(
InferredJsonClass
), responseType.Type);
818
Assert.Equal(typeof(
InferredJsonClass
), responseType.Type);
863
builder.MapPost("/api/todos", (
InferredJsonClass
inferredJsonClass) => "")
864
.Accepts(typeof(
InferredJsonClass
), "application/json");
881
Assert.Equal(typeof(
InferredJsonClass
), bodyParameterDescription.Type);
893
.Produces<
InferredJsonClass
>(StatusCodes.Status200OK);
912
Assert.Equal(typeof(
InferredJsonClass
), responseType.Type);
923
builder.MapPost("/api/todos", (
InferredJsonClass
inferredJsonClass) => "");
940
Assert.Equal(typeof(
InferredJsonClass
), bodyParameterDescription.Type);
955
builder.MapPost("/api/todos", (
InferredJsonClass
? inferredJsonClass) => "");
972
Assert.Equal(typeof(
InferredJsonClass
), bodyParameterDescription.Type);
987
builder.MapPost("/api/todos", [Consumes("application/xml")] (
InferredJsonClass
? inferredJsonClass) => "");
1004
Assert.Equal(typeof(
InferredJsonClass
), bodyParameterDescription.Type);
1463
private record ArgumentListRecord([FromRoute] int Foo, int Bar,
InferredJsonClass
? FromBody, HttpContext context);
1465
private record struct ArgumentListRecordStruct([FromRoute] int Foo, int Bar,
InferredJsonClass
? FromBody, HttpContext context);
1467
private record ArgumentListRecordWithoutAttributes(int Foo, int Bar,
InferredJsonClass
? FromBody, HttpContext context);
1474
public
InferredJsonClass
? FromBody { get; set; }
1483
public
InferredJsonClass
? FromBody { get; set; }
1497
public
InferredJsonClass
? FromBody { get; set; }