Я пытаюсь запустить интеграционные тесты и получить эту ошибку < /p>
system.invalidoperationException: точка входа, выходящая без строительства. Microsoft.extensions.hosting.hostfactoryresolver. C__displayclass10_0.b__0 (string [] args)
at microsoft.aspnetcore.mvc.testing.deferredhostbuilder.build ()
at microsoft.aspnecore.mvc.wepplication.wepplicator.
Я пытаюсь запустить интеграционные тесты и получить эту ошибку < /p>
system.invalidoperationException: точка входа, выходящая без строительства. Microsoft.extensions.hosting.hostfactoryresolver. C__displayclass10_0.b__0 (string [] args) at microsoft.aspnetcore.mvc.testing.deferredhostbuilder.build () at microsoft.aspnecore.mvc.wepplication.wepplicator.[code]1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory< /code> 1.configurehostbuilder (ihostbuilder hostbuilder) at microsoft.aspnetcore.mvc.testing.webapplicationFactory1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory< /code> 1.createdefaultclient (делегирование Handler [] Handlers) at microsoft.aspnetcore.mvc.testing.webapplicationFactory1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory< /code> 1.createclient (webapplicationFactoryClientOptions Options) at ptco.system.integrationtests.infrastructure.integrationtestswebfactory.creemanagedclient () в C: \ users \ nemes \ documents \ github \ ptco.app \ system \ ptco.system.integrationtests \ infrastructure \ IntegrationTestswebfactory.cs: строка 249 < /p> < /blockquote> ряд 249 - < /p> private HttpClient CreteManagedClient() => CreateClient(new WebApplicationFactoryClientOptions { BaseAddress = new Uri(_configuration.GetValue("IntegrationServerBaseUri")) }); < /code> , который называется таким, < /p> public IntegrationTestsWebFactory() #pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. { _configurationPath = Path.Join(AppDomain.CurrentDomain.BaseDirectory, "appsettings.json"); _configuration = BuildConfiguration(); ManagedHttpClient = CreteManagedClient(); } [/code] Как я могу решить эту ошибку?