Class TestcontainerModuleOptions<TBuilder>
- Namespace
- XBullet.EasyTesting.Testcontainers
- Assembly
- XBullet.EasyTesting.Testcontainers.dll
Configures one of the built-in Testcontainers module registrations.
public sealed class TestcontainerModuleOptions<TBuilder> where TBuilder : class
Type Parameters
TBuilderThe immutable native Testcontainers builder type to transform.
- Inheritance
-
TestcontainerModuleOptions<TBuilder>
- Inherited Members
Constructors
TestcontainerModuleOptions(string, string)
Creates module options with package defaults.
public TestcontainerModuleOptions(string resourceName, string configurationKey)
Parameters
resourceNamestringThe initial non-empty scenario resource name.
configurationKeystringThe initial non-empty application configuration key for the endpoint.
Properties
ConfigurationKey
Gets or sets the application configuration key that receives the endpoint.
public string ConfigurationKey { get; set; }
Property Value
- string
The non-empty configuration key under which the module connection string or endpoint is published after readiness. Module registration validates the final value.
ResourceName
Gets or sets the scenario environment resource name.
public string ResourceName { get; set; }
Property Value
- string
The non-empty, case-insensitively unique resource name used for lookup and diagnostics. Module registration validates the final value after its configuration callback returns.
Methods
ConfigureBuilder(Func<TBuilder, TBuilder>)
Adds an immutable native-builder transformation.
public TestcontainerModuleOptions<TBuilder> ConfigureBuilder(Func<TBuilder, TBuilder> configure)
Parameters
configureFunc<TBuilder, TBuilder>A non-null transformation retained until each scenario creates its container. Transformations run once per container in registration order and must return a non-null native builder.
Returns
- TestcontainerModuleOptions<TBuilder>
This options instance, for chaining.