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