private static void Initialize() { TestWebServer.EnsureTestAssembly(); TestFramework.EnsureCorrectVersion(TestWebServer.GetDependencyContext()); ValidateStartup(); TestCounter.SetLicenseData( ServerTestConfiguration.Global.Licenses, DateTime.UtcNow, DateTime.ParseExact(TestFramework.ReleaseDate, "yyyy-MM-dd", CultureInfo.InvariantCulture), TestWebServer.TestAssemblyName); PluginsContainer.LoadPlugins(TestWebServer.GetDependencyContext()); var serviceCollection = TestWebServer.GetInitialServiceCollection(); PrepareStartup(serviceCollection); PrepareServices(serviceCollection); PrepareApplicationAndRouting(); initialized = true; }