- make solution:
dotnet new sln -o CloudCustomers
. - add git ignore file:
dotnet new gitignore
- add web api project:
dotnet new webapi -o CloudCustomers.API
- add unit test project:
dotnet new xunit -o CloudCustomers.UnitTests
- add all project to solution:
dotnet sln add **/*.csproj
ordotnet sln add .\CloudCustomers.API\CloudCustomers.API.csproj
anddotnet sln add .\CloudCustomers.UnitTests\CloudCustomers.UnitTests.csproj
- add
moq
andFluentAssertion
library to test project
- base on Building a .Net API Using TDD by Wes Doyle