Mocker..::..GetMockDbContext Method (Type)

Gets the mock database context.

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

Syntax


public Mock GetMockDbContext(
	Type contextType
)
Public Function GetMockDbContext ( _
	contextType As Type _
) As Mock
public:
Mock^ GetMockDbContext(
	Type^ contextType
)

Parameters

contextType
Type: Type
Type of the context.

Return Value

Mock of the mock database context.

Exceptions


ExceptionCondition
InvalidOperationExceptionUnable to get MockDb. Try GetDbContext to use internal database.
NotSupportedException
MissingMethodExceptionGetMockDbContext