示例#1
0
        public void when_the_topic_has_no_last_event_return_everything_in_order()
        {
            theQueue.FindQueuedEvents(new FakeTopic {
                LastEventId = null
            }).Select(x => x.Id)
            .ShouldHaveTheSameElementsAs("2", "1", "3", "4", "5", "6", "7");

            theQueue.FindQueuedEvents(new FakeTopic {
                LastEventId = string.Empty
            }).Select(x => x.Id)
            .ShouldHaveTheSameElementsAs("2", "1", "3", "4", "5", "6", "7");
        }