Skip to content

Commit

Permalink
turn on diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
turbcool committed Jan 24, 2024
1 parent 6fda752 commit e848976
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public static class UnityConfig
private static Lazy<IUnityContainer> container =
new Lazy<IUnityContainer>(() =>
{
var container = new UnityContainer();
RegisterTypes(container);
var container = new UnityContainer().AddExtension(new Diagnostic());
RegisterTypes(container);
return container;
});

Expand Down Expand Up @@ -44,4 +44,4 @@ public static void RegisterTypes(IUnityContainer container)
// container.RegisterType<IProductRepository, ProductRepository>();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public virtual void ActODataService(Action<TestArgs> 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/") })
Expand Down Expand Up @@ -191,8 +191,8 @@ public virtual void ActODataService(Action<TestArgs> action)
}
#endif

protected void CheckODataBatchResponseStatusCode(HttpResponseMessage response, HttpStatusCode[] statusCodes)
{
protected void CheckODataBatchResponseStatusCode(HttpResponseMessage response, HttpStatusCode[] statusCodes)
{
BatchHelper.CheckODataBatchResponseStatusCode(response, statusCodes);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected override IWebHostBuilder CreateWebHostBuilder()
var webHostBuilder = new WebHostBuilder()
.UseUnityServiceProvider(container)
.UseContentRoot(contentRootDirectory)
.UseStartup<TestStartup>();
.UseStartup<TStartup>();
return webHostBuilder;
}

Expand Down

0 comments on commit e848976

Please sign in to comment.