Class ManagerTestHarnessBuilder<TManagerTestHarnessBuilder>
Provides the abstract builder class for an ManagerTestHarness.
Inheritance
Namespace: Copper.Conventions.Method.Testing.Harness.V1
Assembly: Copper.Conventions.Method.Testing.Harness.dll
Syntax
public abstract class ManagerTestHarnessBuilder<TManagerTestHarnessBuilder> : ComponentBuilder<ManagerTestHarness, TManagerTestHarnessBuilder> where TManagerTestHarnessBuilder : ManagerTestHarnessBuilder<TManagerTestHarnessBuilder>
Type Parameters
Name | Description |
---|---|
TManagerTestHarnessBuilder | The Manager test harness builder type. |
Constructors
View SourceManagerTestHarnessBuilder()
Initializes a new instance of the ManagerTestHarnessBuilder<TManagerTestHarnessBuilder> class.
Declaration
protected ManagerTestHarnessBuilder()
Methods
View SourceAddAccess<TImplementation>(String, Func<TestHarnessAccessBuilder<TImplementation>>)
Adds an Access to the test harness.
Declaration
public TManagerTestHarnessBuilder AddAccess<TImplementation>(string applicationName, Func<TestHarnessAccessBuilder<TImplementation>> testHarnessAccessBuilderConfigureDelegate)
where TImplementation : class
Parameters
Type | Name | Description |
---|---|---|
System.String | applicationName | The application name. |
System.Func<TestHarnessAccessBuilder<TImplementation>> | testHarnessAccessBuilderConfigureDelegate | The test harness Access builder configure delegate. |
Returns
Type | Description |
---|---|
TManagerTestHarnessBuilder | The same instance of |
Type Parameters
Name | Description |
---|---|
TImplementation |
AddEngine<TImplementation>(String, Func<TestHarnessEngineBuilder<TImplementation>>)
Adds an Engine to the test harness.
Declaration
public TManagerTestHarnessBuilder AddEngine<TImplementation>(string applicationName, Func<TestHarnessEngineBuilder<TImplementation>> testHarnessEngineBuilderConfigureDelegate)
where TImplementation : class
Parameters
Type | Name | Description |
---|---|---|
System.String | applicationName | The application name. |
System.Func<TestHarnessEngineBuilder<TImplementation>> | testHarnessEngineBuilderConfigureDelegate | The test harness Engine builder configure delegate. |
Returns
Type | Description |
---|---|
TManagerTestHarnessBuilder | The same instance of |
Type Parameters
Name | Description |
---|---|
TImplementation |
AddManager<TImplementation>(String, Func<TestHarnessManagerBuilder<TImplementation>>)
Adds an Manager to the test harness.
Declaration
public TManagerTestHarnessBuilder AddManager<TImplementation>(string applicationName, Func<TestHarnessManagerBuilder<TImplementation>> testHarnessManagerBuilderConfigureDelegate)
where TImplementation : class
Parameters
Type | Name | Description |
---|---|---|
System.String | applicationName | The application name. |
System.Func<TestHarnessManagerBuilder<TImplementation>> | testHarnessManagerBuilderConfigureDelegate | The test harness Manager builder configure delegate. |
Returns
Type | Description |
---|---|
TManagerTestHarnessBuilder | The same instance of |
Type Parameters
Name | Description |
---|---|
TImplementation |
AppendEventHandler<TEvent>(String, TEvent)
Appends an event handler to the test harness.
Declaration
public TManagerTestHarnessBuilder AppendEventHandler<TEvent>(string handlerName, TEvent eventHandler)
where TEvent : class
Parameters
Type | Name | Description |
---|---|---|
System.String | handlerName | The handler name. |
TEvent | eventHandler | The event handler. |
Returns
Type | Description |
---|---|
TManagerTestHarnessBuilder | The same instance of |
Type Parameters
Name | Description |
---|---|
TEvent |
ConfigureTestHarnessComponentConfiguration(Action<ChildComponentConfiguration<TestHarnessBuilder>>)
Configures Manager test harness's inner test harness component configuration.
Declaration
public TManagerTestHarnessBuilder ConfigureTestHarnessComponentConfiguration(Action<ChildComponentConfiguration<TestHarnessBuilder>> configureDelegate)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ChildComponentConfiguration<TestHarnessBuilder>> | configureDelegate | The delegate for configuring the |
Returns
Type | Description |
---|---|
TManagerTestHarnessBuilder |