Beispiel #1
0
        private void readAndVerifyAllFeed(Serialized client)
        {
            Debug.WriteLine("Reading ALL feed");

            var allFeed       = client.FeedEvents();
            var feeEnumerator = allFeed.Entries.GetEnumerator();

            Assert.AreEqual(3, allFeed.Entries.Count);

            feeEnumerator.MoveNext();
            Assert.AreEqual(orderId1, feeEnumerator.Current.AggregateId);

            feeEnumerator.MoveNext();
            Assert.AreEqual(orderId1, feeEnumerator.Current.AggregateId);

            feeEnumerator.MoveNext();
            Assert.AreEqual(orderId2, feeEnumerator.Current.AggregateId);
        }