aspnetcore/test/Microsoft.AspNetCore.Routin.../Matchers/DfaMatcherConformanceTest.cs

19 lines
628 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Routing.Matchers
{
public class DfaMatcherConformanceTest : MatcherConformanceTest
{
internal override Matcher CreateMatcher(params MatcherEndpoint[] endpoints)
{
var builder = new DfaMatcherBuilder();
for (int i = 0; i < endpoints.Length; i++)
{
builder.AddEndpoint(endpoints[i]);
}
return builder.Build();
}
}
}