/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Mvc/test/Mvc.FunctionalTests/KestrelBasedWebApplicationFactory.cs
15 строк
498 B
Artak
Add a new UseKestel API to the WebApplicationFactory (#60635)
28 мар 2025, 21:08
Не верифицирован
28 мар 2025, 21:08
8e14559
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Mvc.Testing; namespace Microsoft.AspNetCore.Mvc.FunctionalTests; public class KestrelBasedWebApplicationFactory : WebApplicationFactory<SimpleWebSite.Startup> { public KestrelBasedWebApplicationFactory() : base() { // Use dynamically assigned port to avoid test conflicts in CI. this.UseKestrel(0); } }