44 references to Product
ApiExplorerWebSite (36)
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);
Models\OrderDetailsDTO.cs (1)
14
public
Product
Product { get; set; }
Microsoft.AspNetCore.Mvc.FunctionalTests (8)
ApiExplorerTest.cs (8)
610
var type1 = typeof(ApiExplorerWebSite.
Product
).FullName;
642
var type1 = typeof(ApiExplorerWebSite.
Product
).FullName;
674
var type1 = typeof(ApiExplorerWebSite.
Product
).FullName;
706
var type1 = typeof(ApiExplorerWebSite.
Product
).FullName;
932
Assert.Equal(typeof(
Product
).FullName, responseType.ResponseType);
1057
Assert.Equal(typeof(ApiExplorerWebSite.
Product
).FullName, product.Type);
1282
Assert.Equal(typeof(
Product
).FullName, responseType.ResponseType);
1312
Assert.Equal(typeof(IEnumerable<
Product
>).FullName, responseType.ResponseType);