Class MockAsyncEnumerator<T>
Inherited Members
Namespace: FastMoq.Models
Assembly: FastMoq.Database.dll
Syntax
public class MockAsyncEnumerator<T> : IAsyncEnumerator<T>, IAsyncDisposable
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
MockAsyncEnumerator(IEnumerator<T>)
Declaration
public MockAsyncEnumerator(IEnumerator<T> inner)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerator<T> | inner |
Properties
Current
Gets the element in the collection at the current position of the enumerator.
Declaration
public T Current { get; }
Property Value
| Type | Description |
|---|---|
| T | The element in the collection at the current position of the enumerator. |
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
Declaration
public ValueTask DisposeAsync()
Returns
| Type | Description |
|---|---|
| ValueTask | A task that represents the asynchronous dispose operation. |
MoveNextAsync()
Advances the enumerator asynchronously to the next element of the collection.
Declaration
public ValueTask<bool> MoveNextAsync()
Returns
| Type | Description |
|---|---|
| ValueTask<bool> | A ValueTask<TResult> that will complete with a result of true if the enumerator was successfully advanced to the next element, or false if the enumerator has passed the end of the collection. |