Interface IDbContextMock<TEntity>
Describes a strongly typed FastMoq DbContext mock wrapper.
Inherited Members
Namespace: FastMoq.Models
Assembly: FastMoq.Database.dll
Syntax
public interface IDbContextMock<TEntity> : IDbContextMock where TEntity : DbContext
Type Parameters
| Name | Description |
|---|---|
| TEntity | The concrete DbContext type being mocked. |
Methods
SetupDbSets(Mocker)
Configures all DbSet properties and related helper methods for the current DbContext mock.
Declaration
DbContextMock<TEntity> SetupDbSets(Mocker mocks)
Parameters
| Type | Name | Description |
|---|---|---|
| Mocker | mocks | The owning mocker used to resolve nested set dependencies. |
Returns
| Type | Description |
|---|---|
| DbContextMock<TEntity> | The current DbContext mock instance for fluent chaining. |