Show / Hide Table of Contents

Method MockAsync

| Improve this Doc View Source

MockAsync(T, IProgress<DbInitProgress>, CancellationToken)

Mocks the databased.

Declaration
protected Task<T> MockAsync(T db, IProgress<DbInitProgress> progress = null, CancellationToken ct = default(CancellationToken))
Parameters
Type Name Description
T db

The database to be mocked.

System.IProgress<DbInitProgress> progress

The mocking progress to report.

System.Threading.CancellationToken ct

The async cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<T>

The mocked database.

Remarks

Derived class should define a static factory method, which implemented as calling this method.

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