Mocker..::..GetMockDbContext Method (Type)
Gets the mock database context.
Namespace:
FastMoqAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
Parameters
- contextType
- Type: Type
Type of the context.
Return Value
Mock of the mock database context.Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Unable to get MockDb. Try GetDbContext to use internal database. |
NotSupportedException | |
MissingMethodException | GetMockDbContext |