Skip to content

Commit

Permalink
fix(Create): change application tests project path
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmet-cetinkaya committed Jan 15, 2024
1 parent 514b865 commit 7b2e28f
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,22 @@ await replaceFileContentWithProjectName(
projectName: projectName.ToCamelCase()
);

string testProjectDir =
$"{Environment.CurrentDirectory}/tests/{projectName.ToPascalCase()}.Application.Tests";
Directory.Move(
sourceDirName: $"{Environment.CurrentDirectory}/tests/StarterProject.Application.Tests/",
destDirName: testProjectDir
);
await replaceFileContentWithProjectName(
path: $"{Environment.CurrentDirectory}/tests/Application.Tests/Application.Tests.csproj",
path: $"{testProjectDir}/StarterProject.Application.Tests.csproj",
search: "starterProject",
projectName: projectName.ToCamelCase()
);
await replaceFileContentWithProjectName(
path: $"{testProjectDir}/StarterProject.Application.Tests.csproj",
search: "StarterProject",
projectName: projectName.ToPascalCase()
);

await replaceFileContentWithProjectName(
path: $"{projectPath}/WebAPI/appsettings.json",
Expand Down

0 comments on commit 7b2e28f

Please sign in to comment.