9 instantiations of InferredJsonClass
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (9)
EndpointMetadataApiDescriptionProviderTest.cs (9)
147
AssertJsonResponse(GetApiDescription(() => new
InferredJsonClass
()), typeof(InferredJsonClass));
190
() => new
InferredJsonClass
());
217
() => new
InferredJsonClass
());
255
() => Results.Ok(new
InferredJsonClass
()));
281
TypedResults.Created("https://example.com", new
InferredJsonClass
()));
306
var apiDescription = GetApiDescription(() => TypedResults.Created("https://example.com", new
InferredJsonClass
()));
339
Task.FromResult(TypedResults.Created("https://example.com", new
InferredJsonClass
())));
360
() => Task.FromResult(Results.Ok(new
InferredJsonClass
())));
392
? TypedResults.Created<InferredJsonClass>("/", new
InferredJsonClass
())
63 references to InferredJsonClass
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (63)
EndpointMetadataApiDescriptionProviderTest.cs (63)
74
(
InferredJsonClass
fromBody) =>
88
(
InferredJsonClass
fromBody) =>
106
[Consumes(typeof(
InferredJsonClass
), "application/custom0", "application/custom1", IsOptional = true)]
121
[Consumes(typeof(
InferredJsonClass
), "application/custom0", "application/custom1", IsOptional = false)]
122
(
InferredJsonClass
fromBody) =>
147
AssertJsonResponse(GetApiDescription(() => new InferredJsonClass()), typeof(
InferredJsonClass
));
197
Assert.Equal(typeof(
InferredJsonClass
), inferredResponseType.Type);
198
Assert.Equal(typeof(
InferredJsonClass
), inferredResponseType.ModelMetadata?.ModelType);
224
Assert.Equal(typeof(
InferredJsonClass
), rdfInferredResponseType.Type);
225
Assert.Equal(typeof(
InferredJsonClass
), rdfInferredResponseType.ModelMetadata?.ModelType);
242
Assert.Equal(typeof(
InferredJsonClass
), badRequestResponseType.Type);
243
Assert.Equal(typeof(
InferredJsonClass
), badRequestResponseType.ModelMetadata?.ModelType);
253
[ProducesResponseType(typeof(
InferredJsonClass
), StatusCodes.Status201Created)]
262
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.Type);
263
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.ModelMetadata?.ModelType);
280
var apiDescription = GetApiDescription(Results<Created<
InferredJsonClass
>, BadRequest> () =>
288
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.Type);
289
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.ModelMetadata?.ModelType);
313
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.Type);
314
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.ModelMetadata?.ModelType);
346
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.Type);
347
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.ModelMetadata?.ModelType);
358
[ProducesResponseType(typeof(
InferredJsonClass
), StatusCodes.Status201Created)]
367
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.Type);
368
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.ModelMetadata?.ModelType);
386
[ProducesResponseType(typeof(
InferredJsonClass
), StatusCodes.Status201Created)]
388
async Task<Results<Created<
InferredJsonClass
>, ProblemHttpResult>> () =>
392
? TypedResults.Created<
InferredJsonClass
>("/", new InferredJsonClass())
401
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.Type);
402
Assert.Equal(typeof(
InferredJsonClass
), createdResponseType.ModelMetadata?.ModelType);
604
AssertBodyParameter(GetApiDescription((
InferredJsonClass
foo) => { }, httpMethods: ["POST"]), "foo", typeof(
InferredJsonClass
));
620
var apiDescription = GetApiDescription(([FromRoute] int foo, int bar,
InferredJsonClass
fromBody) => { }, httpMethods: ["POST"]);
639
Assert.Equal(typeof(
InferredJsonClass
), fromBodyParam.Type);
640
Assert.Equal(typeof(
InferredJsonClass
), fromBodyParam.ModelMetadata.ModelType);
670
Assert.Equal(typeof(
InferredJsonClass
), param.Type);
671
Assert.Equal(typeof(
InferredJsonClass
), param.ModelMetadata.ModelType);
860
builder.MapGet("/api/todos", () => "").Produces<
InferredJsonClass
>().WithGroupName(endpointGroupName);
876
Assert.Equal(typeof(
InferredJsonClass
), responseTypes.Type);
885
builder.MapGet("/api/todos", () => "").Produces<
InferredJsonClass
>().ExcludeFromDescription();
908
.Produces<
InferredJsonClass
>(StatusCodes.Status200OK)
930
Assert.Equal(typeof(
InferredJsonClass
), responseType.Type);
960
.Produces<
InferredJsonClass
>(StatusCodes.Status200OK)
961
.Produces<
InferredJsonClass
>(StatusCodes.Status201Created);
980
Assert.Equal(typeof(
InferredJsonClass
), responseType.Type);
986
Assert.Equal(typeof(
InferredJsonClass
), responseType.Type);
1031
builder.MapPost("/api/todos", (
InferredJsonClass
inferredJsonClass) => "")
1032
.Accepts(typeof(
InferredJsonClass
), "application/json");
1049
Assert.Equal(typeof(
InferredJsonClass
), bodyParameterDescription.Type);
1061
.Produces<
InferredJsonClass
>(StatusCodes.Status200OK);
1080
Assert.Equal(typeof(
InferredJsonClass
), responseType.Type);
1091
builder.MapPost("/api/todos", (
InferredJsonClass
inferredJsonClass) => "");
1108
Assert.Equal(typeof(
InferredJsonClass
), bodyParameterDescription.Type);
1123
builder.MapPost("/api/todos", (
InferredJsonClass
? inferredJsonClass) => "");
1140
Assert.Equal(typeof(
InferredJsonClass
), bodyParameterDescription.Type);
1155
builder.MapPost("/api/todos", [Consumes("application/xml")] (
InferredJsonClass
? inferredJsonClass) => "");
1172
Assert.Equal(typeof(
InferredJsonClass
), bodyParameterDescription.Type);
1652
private record ArgumentListRecord([FromRoute] int Foo, int Bar,
InferredJsonClass
? FromBody, HttpContext context);
1654
private record struct ArgumentListRecordStruct([FromRoute] int Foo, int Bar,
InferredJsonClass
? FromBody, HttpContext context);
1656
private record ArgumentListRecordWithoutAttributes(int Foo, int Bar,
InferredJsonClass
? FromBody, HttpContext context);
1663
public
InferredJsonClass
? FromBody { get; set; }
1672
public
InferredJsonClass
? FromBody { get; set; }
1686
public
InferredJsonClass
? FromBody { get; set; }