Skip to main content.

Site Map

Site Map

MongoDB Xunit Project

The MongoDB Xunit project contains test classes for controllers using the storage provider specific implementation. It has a reference to [Module Name].Xunit, [Module Name].Api.Controller and [Module Name].MongoDb projects.

Default File Structure

Root Directory

This root directory will contain (2) two files:

  • appsettings.json - Provides any required configuration settings used by the microservice.
  • [Module Name]StartupMongoDb.cs - Provides a startup file used to host the microservice.

Controllers

This folder contains base integration test used for API controllers. By default, it will contain one file for each Domain Object being exposed, named [DomainObject Name]ApiControllerTest.cs.

Mapping

This folder contains a single file used for testing the Automapper configuration, named MappingTest.cs.