Class VirtualChangeSetAggregator<TObject, TKey>
- Namespace
- DynamicData.Tests
- Assembly
- DynamicData.dll
Aggregates all events and statistics for a virtual change set to help assertions when testing.
public class VirtualChangeSetAggregator<TObject, TKey> : IDisposable where TObject : notnull where TKey : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
- Inheritance
-
VirtualChangeSetAggregator<TObject, TKey>
- Implements
- Extension Methods
Constructors
VirtualChangeSetAggregator(IObservable<IVirtualChangeSet<TObject, TKey>>)
Initializes a new instance of the VirtualChangeSetAggregator<TObject, TKey> class.
public VirtualChangeSetAggregator(IObservable<IVirtualChangeSet<TObject, TKey>> source)
Parameters
source
IObservable<IVirtualChangeSet<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.
Messages
Gets the messages.
public IList<IVirtualChangeSet<TObject, TKey>> Messages { get; }
Property Value
- IList<IVirtualChangeSet<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.