standards-c-sharp

Follow the testing pyramid

The test pyramid is a way of thinking about [how] different kinds of automated tests should be used to create a balanced portfolio. Its essential point is that you should have many more low-level UnitTests than high level [E2E tests] running through a GUI - Martin Fowler

Testing pyramid

Unit tests

Tests a single piece of functionality isolated from the rest of the system.

Integration tests

Test that multiple units work correctly together. Certain parts of the system may still be mocked.

E2E tests

Full application stack tested as a whole, including front end, database and all other external resources.