Interface ITrackedMockPropertyConfigurator
Optional provider extension for configuring one property getter on a tracked mock through FastMoq-owned helpers.
Namespace: FastMoq.Providers
Assembly: FastMoq.Abstractions.dll
Syntax
public interface ITrackedMockPropertyConfigurator
Methods
TryConfigureMockProperty(IFastMock, PropertyInfo, object?)
Attempts to configure the getter for propertyInfo on mock so it returns value.
Declaration
bool TryConfigureMockProperty(IFastMock mock, PropertyInfo propertyInfo, object? value)
Parameters
| Type | Name | Description |
|---|---|---|
| IFastMock | mock | The tracked mock whose property getter should be configured. |
| PropertyInfo | propertyInfo | The property whose getter should be configured. |
| object | value | The value the getter should return. |
Returns
| Type | Description |
|---|---|
| bool | true when the provider configured the property successfully; otherwise, false. |