Tests

We have a variety of tests in this application.

Unit Tests

These are the smallest tests. We use the Builder pattern to assist us in creating Address, Basket, and Order objects in our tests.

The ApplicationCore tests demonstrate concepts such as:

The MediatorHandlers/OrdersTests can give you an idea of how to write tests around MediatR handlers.

Integration Tests

There are currently 2 projects for integration tests:

Functional Tests

Some of the things seen in the functional tests include:

Architecture Tests

We have examples of architecture tests in the sadukie/ArchUnitNET-tests branch. Sadukie covers these architecture tests in:

Resources

Here are more resources for learning about testing: