Skip to content

Integration Tests

Alessio Di Salvo edited this page Oct 30, 2026 · 2 revisions

Integration Tests (ModularNet.IntegrationTests)

The ModularNet.IntegrationTests project validates real interactions across layers (Business and Infrastructure) against configured external services or test environments.

How Program.cs Works

  1. Configuration: Loads appsettings.json from the ModularNet.IntegrationTests directory along with environment variables and command-line arguments.
  2. Service Registration: Calls the same layer extension methods used by the API (builder.Services.AddInfrastructureServices(configuration) and builder.Services.AddBusinessServices(configuration)).
  3. Firebase Initialization: Initializes FirebaseApp with modularnet-firebase-adminsdk-dev.json.
  4. Test Execution: Resolves real manager services from the DI container and runs the test suites in Tests/:
    • ConfigurationTests
    • EmailServiceTests
    • EncryptManagerTests
    • AppSettingsManagerTests
    • CacheManagerTests

Clone this wiki locally