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