Show / Hide Table of Contents

Class DbMock<T>

Base class to mock a database.

Inheritance
System.Object
DbInitializer
DbInitializer<T>
DbMock<T>
Implements
System.IProgress<DbInitProgress>
Inherited Members
DbInitializer<T>.Db
DbInitializer.Initialize()
DbInitializer.Report(DbInitProgress)
DbInitializer.IProgress<DbInitProgress>.Report(DbInitProgress)
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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest