Table of Contents

Introduction

The SaaS template already includes a ready-to-use testing setup for both unit tests and integration tests.

This setup is provided as a suggested approach so you can start quickly:

  • Application.Tests.Unit shows how to test use-case logic in isolation.
  • Application.Tests.Integration shows how to test real application flows with infrastructure and data access.
  • CodeBlock.DevKit.Test is already referenced and provides reusable base classes and test utilities used by the template tests.

Because CodeBlock.DevKit.Test is part of the private DevKit source, these docs explain what the library gives you and how to apply it in your own test projects.

The sample tests use DemoThing as an example domain so you can learn the testing structure and apply the same pattern to your own features.

You are not required to follow this exact style. You can keep, adapt, or replace this approach based on your team's testing standards.