DbContextMock<(Of <(<'TEntity>)>)>..::..SetupDbContextSetMethods Method

Setups the database context set methods.

Namespace:  FastMoq.Models
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public void SetupDbContextSetMethods(
	PropertyInfo propertyInfo
)
Public Sub SetupDbContextSetMethods ( _
	propertyInfo As PropertyInfo _
)
public:
void SetupDbContextSetMethods(
	PropertyInfo^ propertyInfo
)

Parameters

propertyInfo
Type: PropertyInfo
The property information.

Exceptions


ExceptionCondition
MissingMethodExceptionUnable to get Set method.
InvalidOperationExceptionUnable to get Set method.