Class DbMock<T>
Base class to mock a database.
Implements
System.IProgress<DbInitProgress>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public abstract class DbMock<T> : DbInitializer<T>, IProgress<DbInitProgress> where T : DbSession
Type Parameters
Name | Description |
---|---|
T | The type of database session. |
Methods
Name | Description |
---|---|
GenerateAsync(T, IProgress<DbInitProgress>, CancellationToken) | |
Mock<TModel>(DbTable<TModel>) | Mocks the database table. |
Mock<TModel>(DbTable<TModel>, Func<DataSet<TModel>>) | Mocks the database table with data. |
MockAsync(T, IProgress<DbInitProgress>, CancellationToken) | Mocks the databased. |