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