This project was created with Craftsman.
Go to your solution directory:
cd OncoLimsLite
Run your solution:
dotnet run --project YourBoundedContextName.WebApi
To run integration tests:
- Ensure that you have docker installed.
- Go to your src directory for the bounded context that you want to test.
- Confirm that you have migrations in your infrastructure project. If not you can add them by doing the following:
- Set an environment variable. It doesn't matter what that environment name is for these purposes.
- Powershell:
$Env:ASPNETCORE_ENVIRONMENT = "IntegrationTesting"
- Bash: export
ASPNETCORE_ENVIRONMENT = IntegrationTesting
- Powershell:
- Run a Migration:
dotnet ef migrations add "InitialMigration" --project YourBoundedContextName.Infrastructure --startup-project YourBoundedContextName.WebApi --output-dir Migrations
- Set an environment variable. It doesn't matter what that environment name is for these purposes.
- Run the tests. They will take some time on the first run in the last 24 hours in order to set up the docker configuration.