public ProjectServiceTest(WebApplicationFactory <WebApplication.Startup> factory, ITestOutputHelper output) { _output = output; XUnitUtils.RedirectConsoleToXUnitOutput(output); using var scope = factory.Services.CreateScope(); _projectService = scope.ServiceProvider.GetRequiredService <ProjectService>(); }
public AdoptProjectWithParametersTest(WebApplicationFactory <WebApplication.Startup> factory, ITestOutputHelper output) : base(defaultProjectsConfiguration) { _output = output; XUnitUtils.RedirectConsoleToXUnitOutput(output); using var scope = factory.Services.CreateScope(); _projectService = scope.ServiceProvider.GetRequiredService <ProjectService>(); }