Skip to content

DEFRA/cdp-dotnet-network-checker

Repository files navigation

cdp-dotnet-network-checker

Core delivery C# ASP.NET backend template.

Install MongoDB

  • Install MongoDB on your local machine
  • Start MongoDB:
sudo mongod --dbpath ~/mongodb-cdp

Inspect MongoDB

To inspect the Database and Collections locally:

mongosh

Testing

Run the tests with:

Tests run by running a full WebApplication backed by Ephemeral MongoDB. Tests do not use mocking of any sort and read and write from the in-memory database.

dotnet test

Running

Run CDP-Deployments application:

dotnet run --project CdpDotnetNetworkChecker --launch-profile Development