你的位置: 码友网首页 / 资讯源列表 / Supporting integration tests with WebApplicationFactory in .NET 6: Exploring .NET Core 6 - Part 6

关于[Supporting integration tests with WebApplicationFactory in .NET 6: Exploring .NET Core 6 - Part 6]的摘要:

In the previous post I described the workaround that was added in .NET 6 so that the EF Core tools, which previously relied on the existence of specific methods like CreateHostBuilder would continue to work with the new minimal hosting APIs. In this post I look at a related change to ensure that integration testing with WebApplicationFactory works in .NET 6. WebApplicationFactory used the same HostFactoryResolver class as the EF Core tools, but it required a few more changes too, which I'll look at in this post.

原文地址: https://andrewlock.net/exploring-dotnet-6-part-6-supporting-integration-tests-with-webapplicationfactory-in-dotnet-6/

收录时间: 2021-10-20 浏览量: 1625 分类: .NET

| 0 收藏 | 0