public void Validate_NotEqualZero_Error() { // Arrange Query model = new Query() { MealType = "Breakfast", Orders = new List <int>() { 0, 1, 2 } }; // Act var result = _validator.TestValidate(model); // Assert result.ShouldHaveValidationErrorFor(query => query.Orders); }