https://github.com/timbo-rafa/csharp-template
https://github.com/timbo-rafa/csharp-template
csharp dotnet template xunit
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/timbo-rafa/csharp-template
- Owner: timbo-rafa
- Created: 2020-03-10T15:52:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-10T15:58:55.000Z (over 6 years ago)
- Last Synced: 2025-07-03T08:46:50.155Z (about 1 year ago)
- Topics: csharp, dotnet, template, xunit
- Language: C#
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```bash
dotnet new sln;
dotnet new classlib -o Solution.Service;
dotnet sln add Solution.Service/Solution.Service.csproj;
dotnet new xunit -o Solution.UnitTests.Service;
dotnet add Solution.UnitTests.Service/Solution.UnitTests.Service.csproj reference Solution.Service/Solution.Service.csproj;
dotnet sln add Solution.UnitTests.Service/Solution.UnitTests.Service.csproj;
mv Solution.Service/Class1.cs Solution.Service/SolutionService.cs;
sed -i 's/Class1/SolutionService : ISolutionService/g' Solution.Service/SolutionService.cs;
mv Solution.UnitTests.Service/UnitTest1.cs Solution.UnitTests.Service/SolutionServiceTests.cs;
sed -i 's/Test1/SolutionServiceTests/g' Solution.UnitTests.Service/SolutionServiceTests.cs;
```