DefaultApiDescriptionProviderTest.cs (35)
500Assert.Equal(typeof(Product), responseType.Type);
518Assert.Equal(typeof(Product), responseType.Type);
529action.EndpointMetadata = new List<object>() { new ProducesResponseTypeMetadata(200, typeof(Product)) };
537Assert.Equal(typeof(Product), responseType.Type);
548action.EndpointMetadata = new List<object>() { new ProducesResponseTypeMetadata(200, typeof(Product)) };
577Assert.Equal(typeof(IEnumerable<Product>), responseType.Type);
593Assert.Equal(typeof(Product), responseType.Type);
609Assert.Equal(typeof(Product), responseType.Type);
878Assert.Equal(typeof(Product), responseType.Type);
948Assert.Equal(typeof(Product), responseType.Type);
1018Assert.Equal(typeof(IEnumerable<Product>), responseType.Type);
1025Assert.Equal(typeof(IEnumerable<Product>), responseType.Type);
1193formatters[1].SupportedTypes.Add(typeof(Product));
1298formatters[1].SupportedTypes.Add(typeof(Product));
1559Assert.Equal(typeof(Product), product.Type);
1747Assert.Equal(typeof(Product), product.Type);
1914Assert.Equal(typeof(Product[]), products.Type);
2007Assert.Equal(typeof(Product), product.Type);
2371private Task<Product> ReturnsTaskOfProduct()
2396private ValueTask<Product> ReturnsValueTaskOfProduct()
2421private Product ReturnsProduct()
2426private ActionResult<Product> ReturnsActionResultOfProduct() => null;
2427private Http.HttpResults.Ok<Product> ReturnsResultOfProductWithEndpointMetadata() => null;
2429private ActionResult<IEnumerable<Product>> ReturnsActionResultOfSequenceOfProducts() => null;
2431private Task<ActionResult<Product>> ReturnsTaskOfActionResultOfProduct() => null;
2432private Task<Http.HttpResults.Ok<Product>> ReturnsTaskOfResultOfProductWithEndpointMetadata() => null;
2434private Task<ActionResult<IEnumerable<Product>>> ReturnsTaskOfActionResultOfSequenceOfProducts() => null;
2436private void AcceptsProduct(Product product)
2444private void AcceptsProduct_Body([FromBody] Product product)
2448private void AcceptsProduct_Form([FromForm] Product product)
2457private void AcceptsProduct_Default([ModelBinder] Product product)
2462private void AcceptsProduct_Custom([ModelBinder<BodyModelBinder>] Product product)
2590public Product Product { get; set; }
2713public Product Product { get; set; }
2756public Product[] Products { get; set; }