From e848976aa81fd9d09707648f5d7593b8ea656015 Mon Sep 17 00:00:00 2001 From: Ilya Naidanov Date: Wed, 24 Jan 2024 20:39:31 +0500 Subject: [PATCH] turn on diagnostics --- .../App_Start/UnityConfig.cs | 6 +++--- .../BaseODataServiceIntegratedTest.cs | 6 +++--- .../CustomWebApplicationFactory.cs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/App_Start/UnityConfig.cs b/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/App_Start/UnityConfig.cs index b220c818..f994ddae 100644 --- a/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/App_Start/UnityConfig.cs +++ b/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/App_Start/UnityConfig.cs @@ -13,8 +13,8 @@ public static class UnityConfig private static Lazy container = new Lazy(() => { - var container = new UnityContainer(); - RegisterTypes(container); + var container = new UnityContainer().AddExtension(new Diagnostic()); + RegisterTypes(container); return container; }); @@ -44,4 +44,4 @@ public static void RegisterTypes(IUnityContainer container) // container.RegisterType(); } } -} \ No newline at end of file +} diff --git a/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/BaseODataServiceIntegratedTest.cs b/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/BaseODataServiceIntegratedTest.cs index eee8605f..e2bb0239 100644 --- a/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/BaseODataServiceIntegratedTest.cs +++ b/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/BaseODataServiceIntegratedTest.cs @@ -131,7 +131,7 @@ public virtual void ActODataService(Action action) foreach (IDataService dataService in DataServices) { - using (var container = new UnityContainer()) + using (var container = new UnityContainer().AddExtension(new Diagnostic())) using (var config = new HttpConfiguration()) using (var server = new HttpServer(config)) using (var client = new HttpClient(server, false) { BaseAddress = new Uri("http://localhost/odata/") }) @@ -191,8 +191,8 @@ public virtual void ActODataService(Action action) } #endif - protected void CheckODataBatchResponseStatusCode(HttpResponseMessage response, HttpStatusCode[] statusCodes) - { + protected void CheckODataBatchResponseStatusCode(HttpResponseMessage response, HttpStatusCode[] statusCodes) + { BatchHelper.CheckODataBatchResponseStatusCode(response, statusCodes); } diff --git a/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/CustomWebApplicationFactory.cs b/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/CustomWebApplicationFactory.cs index 926a4c23..98e815cc 100644 --- a/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/CustomWebApplicationFactory.cs +++ b/Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/CustomWebApplicationFactory.cs @@ -22,7 +22,7 @@ protected override IWebHostBuilder CreateWebHostBuilder() var webHostBuilder = new WebHostBuilder() .UseUnityServiceProvider(container) .UseContentRoot(contentRootDirectory) - .UseStartup(); + .UseStartup(); return webHostBuilder; }