Open JakenVeina opened 8 months ago
There is currently no way to test for sorting when using .AsAggregator() upon an ISortedChangeSet<TObject, TKey> stream.
.AsAggregator()
ISortedChangeSet<TObject, TKey>
Soemthing along the lines of...
using var source = new SourceCache<int, int>(x => x); using var results = source .Sort(Comparer<int>.Default) .AsAggregator(); source.AddOrUpdate(3); source.AddOrUpdate(2); source.AddOrUpdate(1); results.SortedItems.Should().BeEquivalentTo(new[] { 1, 2, 3 }, options => options.WithStrictOrdering());
With #870 merged, this could potentially be implemented by deprecating the existing Aggregator classes, and publicizing the RecordingObserver classes, since they include this functionality already.
Aggregator
RecordingObserver
There is currently no way to test for sorting when using
.AsAggregator()
upon anISortedChangeSet<TObject, TKey>
stream.Soemthing along the lines of...