Ejemplo n.º 1
0
        private static void BuildTestProject(string solutionDirectory, string solutionName)
        {
            var testProjectClassPath = ClassPathHelper.TestProjectRootClassPath(solutionDirectory, "", solutionName);

            TestsCsProjBuilder.CreateTestsCsProj(solutionDirectory, solutionName);
            Utilities.ExecuteProcess("dotnet", $@"sln add ""{testProjectClassPath.FullClassPath}"" --solution-folder {"Tests"}", solutionDirectory);

            HealthCheckTestBuilder.CreateHealthCheckTests(solutionDirectory, solutionName);
        }
Ejemplo n.º 2
0
        private static void BuildTestProject(string solutionDirectory, string projectDirectory, string solutionFolder, string solutionName, bool addJwtAuth)
        {
            var testProjectClassPath = ClassPathHelper.TestProjectRootClassPath(projectDirectory, "", solutionName);

            TestsCsProjBuilder.CreateTestsCsProj(projectDirectory, solutionName, addJwtAuth);
            Utilities.ExecuteProcess("dotnet", $@"sln add ""{testProjectClassPath.FullClassPath}"" --solution-folder {solutionFolder}", solutionDirectory);

            HealthCheckTestBuilder.CreateHealthCheckTests(projectDirectory, solutionName);

            if (addJwtAuth)
            {
                Directory.CreateDirectory(ClassPathHelper.HttpClientExtensionsClassPath(projectDirectory, solutionName, "").ClassDirectory);
                HttpClientExtensionsBuilder.Create(projectDirectory, solutionName);
            }
        }