Mocker..::..GetMockDbContext<(Of <(<'TDbContext>)>)> Method

Gets the mock database context.

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

Syntax


public DbContextMock<TDbContext> GetMockDbContext<TDbContext>()
where TDbContext : DbContext
Public Function GetMockDbContext(Of TDbContext As DbContext) As DbContextMock(Of TDbContext)
public:
generic<typename TDbContext>
where TDbContext : DbContext
DbContextMock<TDbContext>^ GetMockDbContext()

Type Parameters

TDbContext
The type of the t database context.

Return Value

Mock<TDbContext> of the mock database context.