9 writes to ModelMetadata
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
40 references to ModelMetadata
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (29)
EndpointMetadataApiDescriptionProviderTest.cs (27)
423Assert.Equal(typeof(int), param.ModelMetadata.ModelType);
438Assert.Equal(typeof(string), param.ModelMetadata.ModelType);
452Assert.Equal(typeof(int), param.ModelMetadata.ModelType);
466Assert.Equal(expectedTYpe, param.ModelMetadata.ModelType);
487Assert.Equal(expectedTYpe, param.ModelMetadata.ModelType);
508Assert.Equal(typeof(int?), param.ModelMetadata.ModelType);
522Assert.Equal(typeof(string), param.ModelMetadata.ModelType);
536Assert.Equal(typeof(T), param.ModelMetadata.ModelType);
558Assert.Equal(typeof(T), param.ModelMetadata.ModelType);
574Assert.Equal(typeof(int), param.ModelMetadata.ModelType);
600Assert.Equal(expectedType, param.ModelMetadata.ModelType);
626Assert.Equal(typeof(int), fooParam.ModelMetadata.ModelType);
633Assert.Equal(typeof(int), barParam.ModelMetadata.ModelType);
640Assert.Equal(typeof(InferredJsonClass), fromBodyParam.ModelMetadata.ModelType);
656Assert.Equal(typeof(int), param.ModelMetadata.ModelType);
663Assert.Equal(typeof(int), param.ModelMetadata.ModelType);
671Assert.Equal(typeof(InferredJsonClass), param.ModelMetadata.ModelType);
716Assert.NotNull(apiDescription.ParameterDescriptions[0].ModelMetadata.ContainerType);
717Assert.Equal(typeof(AsParametersWithRequiredMembers), apiDescription.ParameterDescriptions[0].ModelMetadata.ContainerType);
747Assert.Equal(typeof(int), fooParam.ModelMetadata.ModelType);
753Assert.Equal(typeof(int?), barParam.ModelMetadata.ModelType);
792Assert.Equal(typeof(string), fooParam.ModelMetadata.ModelType);
798Assert.Equal(typeof(int), barParam.ModelMetadata.ModelType);
811Assert.Equal(typeof(string), nameParam.ModelMetadata.ModelType);
1296Assert.Equal(typeof(IFormFile), fromFileParam0.ModelMetadata.ModelType);
1302Assert.Equal(typeof(IFormFile), fromFileParam1.ModelMetadata.ModelType);
1314Assert.Equal(expectedType, param.ModelMetadata.ModelType);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
Microsoft.AspNetCore.OpenApi (6)