Skip to content

Commit 06c92b7

Browse files
committed
Fix unit test
1 parent de6b734 commit 06c92b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerProviderTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using System.Collections.Generic;
45
using System.Diagnostics;
6+
using System.Linq;
57
using System.Reflection;
68
using Microsoft.AspNetCore.Http;
79
using Microsoft.AspNetCore.Mvc.Abstractions;
@@ -75,6 +77,7 @@ private static ControllerActionInvokerProvider CreateInvokerProvider(MvcOptions
7577
NullLoggerFactory.Instance);
7678

7779
var cache = new ControllerActionInvokerCache(
80+
Mock.Of<IActionDescriptorCollectionProvider>(c => c.ActionDescriptors == new ActionDescriptorCollection(new List<ActionDescriptor>(), 1)),
7881
parameterBinder,
7982
modelBinderFactory,
8083
modelMetadataProvider,

0 commit comments

Comments
 (0)