Class SortedChangeSetAggregator<TObject, TKey>
- Namespace
- DynamicData.Tests
- Assembly
- DynamicData.dll
Aggregates all events and statistics for a sorted change set to help assertions when testing.
public class SortedChangeSetAggregator<TObject, TKey> : IDisposable where TObject : notnull where TKey : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
- Inheritance
-
SortedChangeSetAggregator<TObject, TKey>
- Implements
Constructors
SortedChangeSetAggregator(IObservable<ISortedChangeSet<TObject, TKey>>)
Initializes a new instance of the SortedChangeSetAggregator<TObject, TKey> class.
public SortedChangeSetAggregator(IObservable<ISortedChangeSet<TObject, TKey>> source)
Parameters
source
IObservable<ISortedChangeSet<TObject, TKey>>The source.
Properties
Data
Gets the data of the steam cached in-order to apply assertions.
public IObservableCache<TObject, TKey> Data { get; }
Property Value
- IObservableCache<TObject, TKey>
Error
Gets and error.
public Exception? Error { get; }
Property Value
Messages
Gets record of all received messages.
public IList<ISortedChangeSet<TObject, TKey>> Messages { get; }
Property Value
- IList<ISortedChangeSet<TObject, TKey>>
The messages.
Summary
Gets the aggregated change summary.
public ChangeSummary Summary { get; }
Property Value
- ChangeSummary
The summary.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Disposes of managed and unmanaged responses.
protected virtual void Dispose(bool isDisposing)
Parameters
isDisposing
boolIf being called by the Dispose method.