File: ModelBinding\TestValueProvider.cs
Web Access
Project: src\src\Mvc\Mvc.Core\test\Microsoft.AspNetCore.Mvc.Core.Test.csproj (Microsoft.AspNetCore.Mvc.Core.Test)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.AspNetCore.Routing;
 
namespace Microsoft.AspNetCore.Mvc.ModelBinding;
 
public class TestValueProvider : RouteValueProvider
{
    public static readonly BindingSource TestBindingSource = new BindingSource(
        id: "Test",
        displayName: "Test",
        isGreedy: false,
        isFromRequest: true);
 
    public TestValueProvider(IDictionary<string, object> values)
#pragma warning disable CA1304 // Specify CultureInfo
            : base(TestBindingSource, new RouteValueDictionary(values))
#pragma warning restore CA1304 // Specify CultureInfo
    {
    }
 
    public TestValueProvider(BindingSource bindingSource, IDictionary<string, object> values)
#pragma warning disable CA1304 // Specify CultureInfo
            : base(bindingSource, new RouteValueDictionary(values))
#pragma warning restore CA1304 // Specify CultureInfo
    {
    }
}