Class TestHarnessAccessBuilder<TImplementation>
Provides the builder class for a
Inheritance
System.Object
AccessBuilder<TestHarnessAccessBuilder<TImplementation>>
TestHarnessAccessBuilder<TImplementation>
Namespace: Copper.Conventions.Method.Testing.Harness.V1
Assembly: Copper.Conventions.Method.Testing.Harness.dll
Syntax
public sealed class TestHarnessAccessBuilder<TImplementation> : AccessBuilder<TestHarnessAccessBuilder<TImplementation>> where TImplementation : class
Type Parameters
Name | Description |
---|---|
TImplementation | The implementation type. |
Methods
View SourceCreate()
Creates a TestHarnessAccessBuilder<TImplementation> instance.
Declaration
public static TestHarnessAccessBuilder<TImplementation> Create()
Returns
Type | Description |
---|---|
TestHarnessAccessBuilder<TImplementation> | The TestHarnessAccessBuilder<TImplementation> instance. |
UseAccessMock<TContract>(TContract)
Replaces the configured service instance for a given Access contract with an Access mock.
Declaration
public TestHarnessAccessBuilder<TImplementation> UseAccessMock<TContract>(TContract mock)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
TContract | mock |
Returns
Type | Description |
---|---|
TestHarnessAccessBuilder<TImplementation> |
Type Parameters
Name | Description |
---|---|
TContract |