diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-08-25 16:59:35 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-25 16:59:35 -0400 |
| commit | cf6ef9958da4a50bd315d37792567ae51773a6a7 (patch) | |
| tree | 28423f47c93d5246009bc3dd952d90162fa64e0c /tests | |
| parent | 25be1a9b20a09979146c382b0a5c2325bf3ba21f (diff) | |
| parent | b5bbbb9cefb7b360e12b44522d6494bfb4c0f848 (diff) | |
Merge pull request #3910 from barronpm/event-rewrite-1
Event Rewrite (Part 1)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/MediaBrowser.Api.Tests/JellyfinApplicationFactory.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/MediaBrowser.Api.Tests/JellyfinApplicationFactory.cs b/tests/MediaBrowser.Api.Tests/JellyfinApplicationFactory.cs index c39ed07de3..2029f88e92 100644 --- a/tests/MediaBrowser.Api.Tests/JellyfinApplicationFactory.cs +++ b/tests/MediaBrowser.Api.Tests/JellyfinApplicationFactory.cs @@ -72,6 +72,7 @@ namespace MediaBrowser.Api.Tests var startupConfig = Program.CreateAppConfiguration(commandLineOpts, appPaths); ILoggerFactory loggerFactory = new SerilogLoggerFactory(); + var serviceCollection = new ServiceCollection(); _disposableComponents.Add(loggerFactory); // Create the app host and initialize it @@ -80,10 +81,10 @@ namespace MediaBrowser.Api.Tests loggerFactory, commandLineOpts, new ManagedFileSystem(loggerFactory.CreateLogger<ManagedFileSystem>(), appPaths), - new NetworkManager(loggerFactory.CreateLogger<NetworkManager>())); + new NetworkManager(loggerFactory.CreateLogger<NetworkManager>()), + serviceCollection); _disposableComponents.Add(appHost); - var serviceCollection = new ServiceCollection(); - appHost.Init(serviceCollection); + appHost.Init(); // Configure the web host builder Program.ConfigureWebHostBuilder(builder, appHost, serviceCollection, commandLineOpts, startupConfig, appPaths); |
