public ProjectServiceTest(WebApplicationFactory <WebApplication.Startup> factory, ITestOutputHelper output)
        {
            _output = output;
            XUnitUtils.RedirectConsoleToXUnitOutput(output);

            using var scope = factory.Services.CreateScope();
            _projectService = scope.ServiceProvider.GetRequiredService <ProjectService>();
        }
Esempio n. 2
0
        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>();
        }