2 instantiations of ProductViewModel
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
TryValidateModelIntegrationTest.cs (2)
83model.Add(new ProductViewModel() 94model.Add(new ProductViewModel()
17 references to ProductViewModel
Microsoft.AspNetCore.Mvc.IntegrationTests (17)
BodyValidationIntegrationTests.cs (14)
26ParameterType = typeof(ProductViewModel), 47var boundPerson = Assert.IsType<ProductViewModel>(modelBindingResult.Model); 68ParameterType = typeof(IEnumerable<ProductViewModel>), 88var products = Assert.IsAssignableFrom<IEnumerable<ProductViewModel>>(result.Model); 105ParameterType = typeof(ProductViewModel) 128var boundPerson = Assert.IsType<ProductViewModel>(modelBindingResult.Model); 155ParameterType = typeof(ProductViewModel) 174var boundPerson = Assert.IsType<ProductViewModel>(modelBindingResult.Model); 196ParameterType = typeof(ProductViewModel) 213var boundPerson = Assert.IsType<ProductViewModel>(modelBindingResult.Model);
ProductValidatorAttribute.cs (2)
12var product = value as ProductViewModel;
TryValidateModelIntegrationTest.cs (1)
82var model = new List<ProductViewModel>();