Class ChangeSetAggregator<TObject, TKey>
- Namespace
- DynamicData.Tests
- Assembly
- DynamicData.dll
Aggregates all events and statistics for a change set to help assertions when testing.
public class ChangeSetAggregator<TObject, TKey> : IDisposable where TObject : notnull where TKey : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
- Inheritance
-
ChangeSetAggregator<TObject, TKey>
- Implements
- Extension Methods
Constructors
ChangeSetAggregator(IObservable<IChangeSet<TObject, TKey>>)
Initializes a new instance of the ChangeSetAggregator<TObject, TKey> class.
public ChangeSetAggregator(IObservable<IChangeSet<TObject, TKey>> source)
Parameters
source
IObservable<IChangeSet<TObject, TKey>>The source.
Properties
Data
Gets the data.
public IObservableCache<TObject, TKey> Data { get; }
Property Value
- IObservableCache<TObject, TKey>
The data.
Error
Gets the error.
public Exception? Error { get; }
Property Value
- Exception
The error.
IsCompleted
Gets a value indicating whether or not the ChangeSet fired OnCompleted.
public bool IsCompleted { get; }
Property Value
- bool
Boolean Value.
Messages
Gets the messages.
public IList<IChangeSet<TObject, TKey>> Messages { get; }
Property Value
- IList<IChangeSet<TObject, TKey>>
The messages.
Summary
Gets the 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.