1 instantiation of Product
ApiExplorerWebSite (1)
Controllers\ApiExplorerWithTypedResultController.cs (1)
13public Ok<Product> GetProduct() => TypedResults.Ok(new Product { Name = "Test product" });
47 references to Product
ApiExplorerWebSite (37)
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);
Controllers\ApiExplorerWithTypedResultController.cs (1)
13public Ok<Product> GetProduct() => TypedResults.Ok(new Product { Name = "Test product" });
Models\OrderDetailsDTO.cs (1)
14public Product Product { get; set; }
Microsoft.AspNetCore.Mvc.FunctionalTests (10)
ApiExplorerTest.cs (10)
615var type1 = typeof(ApiExplorerWebSite.Product).FullName; 647var type1 = typeof(ApiExplorerWebSite.Product).FullName; 679var type1 = typeof(ApiExplorerWebSite.Product).FullName; 711var type1 = typeof(ApiExplorerWebSite.Product).FullName; 937Assert.Equal(typeof(Product).FullName, responseType.ResponseType); 1062Assert.Equal(typeof(ApiExplorerWebSite.Product).FullName, product.Type); 1287Assert.Equal(typeof(Product).FullName, responseType.ResponseType); 1317Assert.Equal(typeof(IEnumerable<Product>).FullName, responseType.ResponseType); 1584Assert.Equal(typeof(Product), responseType.Type); 1590Assert.Equal(typeof(Product), producesResponseTypeMetadata.Type);