Class TestHarnessBuilder<TTestHarnessBuilder>
Provides the abstract builder class for a TestHarness.
Inheritance
Namespace: Copper.Testing.Harness
Assembly: Copper.Testing.dll
Syntax
public abstract class TestHarnessBuilder<TTestHarnessBuilder> : ComponentBuilder<TestHarness, TTestHarnessBuilder> where TTestHarnessBuilder : TestHarnessBuilder<TTestHarnessBuilder>
Type Parameters
Name | Description |
---|---|
TTestHarnessBuilder | The test harness builder type. |
Constructors
View SourceTestHarnessBuilder()
Initializes a new instance of the TestHarnessBuilder<TTestHarnessBuilder> class.
Declaration
protected TestHarnessBuilder()
Methods
View SourceAppendEventHandler<TEvent>(Func<IServiceProvider, EventReceiverBuilder>, String, TEvent)
Appends an event handler to the test harness.
Declaration
public TTestHarnessBuilder AppendEventHandler<TEvent>(Func<IServiceProvider, EventReceiverBuilder> configureDelegate, string handlerName, TEvent eventHandler)
where TEvent : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.IServiceProvider, EventReceiverBuilder> | configureDelegate | A factory method to create an event receiver to be used to listen for events. |
System.String | handlerName | The handler name. |
TEvent | eventHandler | The event handler. |
Returns
Type | Description |
---|---|
TTestHarnessBuilder | The same instance of TestHarnessBuilder<TTestHarnessBuilder> for chaining. |
Type Parameters
Name | Description |
---|---|
TEvent | The event type. |
AppendFabricHost(Func<IServiceProvider, FabricHostBuilder>)
Appends a fabric host to the test harness.
Declaration
public TTestHarnessBuilder AppendFabricHost(Func<IServiceProvider, FabricHostBuilder> configureDelegate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.IServiceProvider, FabricHostBuilder> | configureDelegate | A factory method to create a fabric host. |
Returns
Type | Description |
---|---|
TTestHarnessBuilder | The same instance of TestHarnessBuilder<TTestHarnessBuilder> for chaining. |
ConfigureEventsProxyComponentConfiguration(Action<ChildComponentConfiguration<EventsProxyBuilder>>)
Configures test harness's events proxy component configuration.
Declaration
public TTestHarnessBuilder ConfigureEventsProxyComponentConfiguration(Action<ChildComponentConfiguration<EventsProxyBuilder>> configureDelegate)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ChildComponentConfiguration<EventsProxyBuilder>> | configureDelegate | The delegate for configuring the |
Returns
Type | Description |
---|---|
TTestHarnessBuilder |
ConfigureEventSubscriptionServiceComponentConfiguration(Action<ChildComponentConfiguration<EventSubscriptionServiceBuilder>>)
Configures test harness's event subscription service component configuration.
Declaration
public TTestHarnessBuilder ConfigureEventSubscriptionServiceComponentConfiguration(Action<ChildComponentConfiguration<EventSubscriptionServiceBuilder>> configureDelegate)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ChildComponentConfiguration<EventSubscriptionServiceBuilder>> | configureDelegate | The delegate for configuring the |
Returns
Type | Description |
---|---|
TTestHarnessBuilder |
ConfigureServiceProxyComponentConfiguration(Action<ChildComponentConfiguration<ServiceProxyBuilder>>)
Configures the test harness's service proxy component configuration.
Declaration
public TTestHarnessBuilder ConfigureServiceProxyComponentConfiguration(Action<ChildComponentConfiguration<ServiceProxyBuilder>> configureDelegate)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ChildComponentConfiguration<ServiceProxyBuilder>> | configureDelegate | The delegate for configuring the |
Returns
Type | Description |
---|---|
TTestHarnessBuilder |