Class TestHarnessEngineBuilder<TImplementation>
Provides the builder class for a
Inheritance
System.Object
TestHarnessEngineBuilder<TImplementation>
Namespace: Copper.Conventions.Method.Testing.Harness.V1
Assembly: Copper.Conventions.Method.Testing.Harness.dll
Syntax
public sealed class TestHarnessEngineBuilder<TImplementation> : EngineBuilder<TestHarnessEngineBuilder<TImplementation>, TestHarnessAccessProxyBuilder> where TImplementation : class
Type Parameters
Name | Description |
---|---|
TImplementation | The implementation type. |
Properties
View SourceAccessProxyComponentConfiguration
Gets the access proxy component configuration.
Declaration
protected override ChildComponentConfiguration<TestHarnessAccessProxyBuilder> AccessProxyComponentConfiguration { get; }
Property Value
Type | Description |
---|---|
ChildComponentConfiguration<TestHarnessAccessProxyBuilder> | The access proxy component configuration. |
Overrides
Copper.Conventions.Method.Service.V1.EngineBuilder<Copper.Conventions.Method.Testing.Harness.V1.TestHarnessEngineBuilder<TImplementation>, Copper.Conventions.Method.Testing.Harness.V1.TestHarnessAccessProxyBuilder>.AccessProxyComponentConfiguration
Methods
View SourceCreate()
Creates a TestHarnessEngineBuilder<TImplementation> instance.
Declaration
public static TestHarnessEngineBuilder<TImplementation> Create()
Returns
Type | Description |
---|---|
TestHarnessEngineBuilder<TImplementation> | The TestHarnessEngineBuilder<TImplementation> instance. |
UseEngineMock<TContract>(TContract)
Replaces the configured service instance for a given Engine contract with an Engine mock.
Declaration
public TestHarnessEngineBuilder<TImplementation> UseEngineMock<TContract>(TContract mock)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
TContract | mock |
Returns
Type | Description |
---|---|
TestHarnessEngineBuilder<TImplementation> |
Type Parameters
Name | Description |
---|---|
TContract |