Interface IProtoConfigurableOptions
An options (or sink) type whose properties can be layered with values from a fixed "ProtoTest:..." configuration section after code-based defaults are applied.
public interface IProtoConfigurableOptions
- Extension Methods
Properties
ConfigurationSectionName
The configuration section this type binds from, e.g. "ProtoTest:Rest:Responses".
string ConfigurationSectionName { get; }
Property Value
FallbackConfigurationSectionName
An older section name that still binds first, so a key the type has since renamed keeps working. ConfigurationSectionName binds over it, so a value under the current section wins. Defaults to null (no fallback).
string? FallbackConfigurationSectionName { get; }
Property Value
Methods
Validate()
Validates the resolved options once, after code callbacks and configuration have been applied. A bad value is a configuration error and must throw here rather than fail the first test that happens to use it. The default does nothing.
void Validate()