Skip to main content.

Site Map

Site Map

Entity Framework Core Xunit Project

The EntityFrameworkCore 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].EntityFrameworkCore 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]StartupEntityFrameworkCore.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.