1 instantiation of Product
ApiExplorerWebSite (1)
Controllers\ApiExplorerWithTypedResultController.cs (1)
13
public Ok<Product> GetProduct() => TypedResults.Ok(new
Product
{ Name = "Test product" });
47 references to Product
ApiExplorerWebSite (37)
Controllers\ApiExplorerParametersController.cs (3)
20
public void SimpleModel(
Product
product)
25
public void SimpleModelFromBody(int id, [FromBody]
Product
product)
37
public void IsRequiredParameters([BindRequired] string requiredParam, string notRequiredParam,
Product
product)
Controllers\ApiExplorerResponseContentTypeController.cs (4)
12
public
Product
Unset()
19
public
Product
Specific()
26
public
Product
WildcardMatch()
33
public
Product
NoMatch()
Controllers\ApiExplorerResponseContentTypeOverrideOnActionController.cs (2)
13
public
Product
GetController()
20
public
Product
GetAction()
Controllers\ApiExplorerResponseTypeOverrideOnActionController.cs (1)
8
[Produces("application/json", Type = typeof(
Product
))]
Controllers\ApiExplorerResponseTypeWithApiConventionController.cs (7)
14
public
Product
GetProduct(int id) => null;
17
public Task<ActionResult<
Product
>> GetTaskOfActionResultOfProduct(int id) => null;
20
public IEnumerable<
Product
> GetProducts() => null;
30
public IActionResult PostWithProduces(
Product
p) => null;
33
public Task<IActionResult> PostTaskOfProduct(
Product
p) => null;
36
public Task<IActionResult> Put(string id,
Product
product) => null;
43
public Task<IActionResult> PostItem(
Product
p) => null;
Controllers\ApiExplorerResponseTypeWithAttributeController.cs (14)
24
[Produces("application/json", Type = typeof(
Product
))]
53
public
Product
GetProduct()
58
[ProducesResponseType(typeof(
Product
), 201)]
60
public
Product
CreateProductWithDefaultResponseContentTypes(
Product
product)
66
[ProducesResponseType(typeof(
Product
), 201)]
68
public
Product
CreateProductWithLimitedResponseContentTypes(
Product
product)
73
[ProducesResponseType(typeof(
Product
), 200)]
75
public
Product
UpdateProductWithDefaultResponseContentTypes(
Product
product)
80
[Produces("text/xml", Type = typeof(
Product
))] // Has status code as 200
82
public
Product
UpdateProductWithLimitedResponseContentTypes(
Product
product)
Controllers\ApiExplorerResponseTypeWithoutAttributeController.cs (4)
35
public
Product
GetProduct()
41
public ActionResult<
Product
> GetActionResultProduct() => null;
74
public Task<
Product
> GetTaskOfProduct()
76
return Task.FromResult<
Product
>(null);
Controllers\ApiExplorerWithTypedResultController.cs (1)
13
public Ok<
Product
> GetProduct() => TypedResults.Ok(new Product { Name = "Test product" });
Models\OrderDetailsDTO.cs (1)
14
public
Product
Product { get; set; }
Microsoft.AspNetCore.Mvc.FunctionalTests (10)
ApiExplorerTest.cs (10)
615
var type1 = typeof(ApiExplorerWebSite.
Product
).FullName;
647
var type1 = typeof(ApiExplorerWebSite.
Product
).FullName;
679
var type1 = typeof(ApiExplorerWebSite.
Product
).FullName;
711
var type1 = typeof(ApiExplorerWebSite.
Product
).FullName;
937
Assert.Equal(typeof(
Product
).FullName, responseType.ResponseType);
1062
Assert.Equal(typeof(ApiExplorerWebSite.
Product
).FullName, product.Type);
1287
Assert.Equal(typeof(
Product
).FullName, responseType.ResponseType);
1317
Assert.Equal(typeof(IEnumerable<
Product
>).FullName, responseType.ResponseType);
1584
Assert.Equal(typeof(
Product
), responseType.Type);
1590
Assert.Equal(typeof(
Product
), producesResponseTypeMetadata.Type);