Class ChangeSetAggregator<TObject>
- Namespace
- DynamicData.Tests
- Assembly
- DynamicData.dll
Aggregates all events and statistics for a change set to help assertions when testing.
public class ChangeSetAggregator<TObject> : IDisposable where TObject : notnull
Type Parameters
TObject
The type of the object.
- Inheritance
-
ChangeSetAggregator<TObject>
- Implements
- Extension Methods
Constructors
ChangeSetAggregator(IObservable<IChangeSet<TObject>>)
Initializes a new instance of the ChangeSetAggregator<TObject> class.
public ChangeSetAggregator(IObservable<IChangeSet<TObject>> source)
Parameters
source
IObservable<IChangeSet<TObject>>The source.
Properties
Data
Gets a clone of the data.
public IObservableList<TObject> Data { get; }
Property Value
- IObservableList<TObject>
Exception
Gets or sets the exception.
public Exception? Exception { get; set; }
Property Value
IsCompleted
Gets a value indicating whether the source stream emitted a completion.
public bool IsCompleted { get; }
Property Value
Messages
Gets all message received.
public IList<IChangeSet<TObject>> Messages { get; }
Property Value
- IList<IChangeSet<TObject>>
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Disposes of managed and unmanaged resources.
protected virtual void Dispose(bool isDisposing)
Parameters
isDisposing
boolIf the method is being called by the Dispose method.