Class GroupChangeSetAggregator<TObject, TKey, TGroupKey>
- Namespace
- DynamicData.Tests
- Assembly
- DynamicData.dll
Aggregates all events and statistics for a group change set to help assertions when testing.
public class GroupChangeSetAggregator<TObject, TKey, TGroupKey> : IDisposable where TObject : notnull where TKey : notnull where TGroupKey : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
TGroupKey
The type of the grouping key.
- Inheritance
-
GroupChangeSetAggregator<TObject, TKey, TGroupKey>
- Implements
- Extension Methods
Constructors
GroupChangeSetAggregator(IObservable<IGroupChangeSet<TObject, TKey, TGroupKey>>)
Initializes a new instance of the GroupChangeSetAggregator<TObject, TKey, TGroupKey> class.
public GroupChangeSetAggregator(IObservable<IGroupChangeSet<TObject, TKey, TGroupKey>> source)
Parameters
source
IObservable<IGroupChangeSet<TObject, TKey, TGroupKey>>The source.
Properties
Data
Gets the data.
public IObservableCache<IGroup<TObject, TKey, TGroupKey>, TGroupKey> Data { get; }
Property Value
- IObservableCache<IGroup<TObject, TKey, TGroupKey>, TGroupKey>
The data.
Error
Gets the error.
public Exception? Error { get; }
Property Value
- Exception
The error.
Groups
Gets a cache containing the aggregated results of each individual group.
public IObservableCache<ChangeSetAggregator<TObject, TKey>, TGroupKey> Groups { get; }
Property Value
- IObservableCache<ChangeSetAggregator<TObject, TKey>, TGroupKey>
IsCompleted
Gets a value indicating whether or not the ChangeSet fired OnCompleted.
public bool IsCompleted { get; }
Property Value
- bool
Boolean Value.
Messages
Gets a list of the messages that were received.
public IReadOnlyList<IGroupChangeSet<TObject, TKey, TGroupKey>> Messages { get; }
Property Value
- IReadOnlyList<IGroupChangeSet<TObject, TKey, TGroupKey>>
Summary
Gets the summary.
public ChangeSummary Summary { get; }
Property Value
- ChangeSummary
The summary.
Methods
Dispose()
public void Dispose()
Dispose(bool)
Disposes of managed and unmanaged responses.
protected virtual void Dispose(bool disposing)
Parameters
disposing
boolIf being called by the Dispose method.