We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7ae2a commit d8d61c3Copy full SHA for d8d61c3
test/Microsoft.AspNetCore.Mvc.Versioning.Tests/Versioning/ApiVersionModelBinderTest.cs
@@ -4,6 +4,7 @@
4
using Microsoft.AspNetCore.Http;
5
using Microsoft.AspNetCore.Http.Features;
6
using Microsoft.AspNetCore.Mvc.ModelBinding;
7
+ using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
8
using Moq;
9
using System.Threading.Tasks;
10
using Xunit;
@@ -60,6 +61,7 @@ static ModelBindingContext NewModelBindingContext( ApiVersion apiVersion )
60
61
62
bindingContext.SetupGet( bc => bc.HttpContext ).Returns( httpContext );
63
bindingContext.SetupProperty( bc => bc.Result );
64
+ bindingContext.SetupProperty( bc => bc.ValidationState, new ValidationStateDictionary() );
65
66
return bindingContext.Object;
67
}
0 commit comments