Namespace Trellis.Testing
Classes
- AggregateTestMutator
Reflection-based helpers for setting source-generated Maybe<T> backing fields in test scenarios. Works on the CLR object directly — no DbContext needed for the mutation itself.
- ErrorAssertions
Contains assertion methods for Error types.
- ErrorAssertionsExtensions
Extension methods to enable FluentAssertions on Error types.
- MaybeAssertionsExtensions
Extension methods to enable FluentAssertions on Maybe types.
- MaybeAssertions<T>
Contains assertion methods for Maybe types.
- MsalTestOptions
Configuration options for acquiring real Azure Entra ID tokens in E2E integration tests using MSAL (Microsoft Authentication Library).
- MsalTestTokenProvider
Acquires real Azure Entra ID tokens for E2E integration tests using the MSAL ROPC (Resource Owner Password Credentials) flow.
- ResultAssertionsAsyncExtensions
Extension methods to enable FluentAssertions on async Result types (Task and ValueTask).
- ResultAssertionsExtensions
Extension methods to enable FluentAssertions on Result types.
- ResultAssertions<TValue>
Contains assertion methods for Result types.
- ServiceCollectionDbProviderExtensions
Extension methods for IServiceCollection that simplify replacing EF Core database provider registrations in integration tests.
- ServiceCollectionExtensions
Extension methods for IServiceCollection that simplify replacing service registrations in integration tests.
- TestUserCredentials
Credentials for a named test user in an Azure Entra ID test tenant. Used with MsalTestOptions to configure E2E integration tests that authenticate with real JWT tokens.
- UnwrapExtensions
Provides
Unwrap()extension methods for extracting values from Result<TValue> and Maybe<T> in test code. These methods throw a descriptive exception on failure/none rather than returning the raw.Value, which avoids TRLS003 warnings in test projects.
- UnwrapFailedException
Exception thrown when Unwrap<T>(Result<T>) or Unwrap<T>(Maybe<T>) is called on a failure/none value. Provides a descriptive message including the error details for test diagnostics.
- ValidationErrorAssertions
Contains assertion methods for ValidationError types.
- ValidationErrorAssertionsExtensions
Extension methods to enable FluentAssertions on ValidationError types.
- WebApplicationFactoryExtensions
Extension methods for WebApplicationFactory<TEntryPoint> that simplify creating authenticated HTTP clients for integration tests.
- WebApplicationFactoryTimeExtensions
Extension methods for WebApplicationFactory<TEntryPoint> that simplify controlling time in integration tests.