Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit dbd340a

Browse files
committed
Fix test
1 parent 0f0cfdf commit dbd340a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Microsoft.AspNetCore.Mvc.Test/MvcServiceCollectionExtensionsTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
using Microsoft.AspNetCore.Mvc.ViewFeatures;
3232
using Microsoft.AspNetCore.Mvc.ViewFeatures.Internal;
3333
using Microsoft.AspNetCore.Routing;
34+
using Microsoft.Extensions.Configuration;
3435
using Microsoft.Extensions.DependencyInjection;
3536
using Microsoft.Extensions.DependencyInjection.Extensions;
3637
using Microsoft.Extensions.ObjectPool;
@@ -261,6 +262,7 @@ public void AddMvc_NoScopedServiceIsReferredToByASingleton()
261262
services.AddSingleton<IHostingEnvironment>(GetHostingEnvironment());
262263
services.AddSingleton<ObjectPoolProvider, DefaultObjectPoolProvider>();
263264
services.AddSingleton<DiagnosticSource>(new DiagnosticListener("Microsoft.AspNet"));
265+
services.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
264266
services.AddLogging();
265267
services.AddOptions();
266268
services.AddMvc();

0 commit comments

Comments
 (0)