Example #1
0
        public void FeedRangeEPK_RequestVisitor()
        {
            Documents.Routing.Range <string> range = new Documents.Routing.Range <string>("AA", "BB", true, false);
            FeedRangeEPK     feedRange             = new FeedRangeEPK(range);
            RequestMessage   requestMessage        = new RequestMessage();
            FeedRangeVisitor feedRangeVisitor      = new FeedRangeVisitor(requestMessage);

            feedRange.Accept(feedRangeVisitor);
            Assert.AreEqual(0, requestMessage.Properties.Count);
        }
        public void FeedRangeEPK_RequestVisitor()
        {
            Documents.Routing.Range <string> range = new Documents.Routing.Range <string>("AA", "BB", true, false);
            FeedRangeEPK   feedRange      = new FeedRangeEPK(range);
            RequestMessage requestMessage = new RequestMessage();
            FeedRangeRequestMessagePopulatorVisitor feedRangeVisitor = new FeedRangeRequestMessagePopulatorVisitor(requestMessage);

            feedRange.Accept(feedRangeVisitor);
            Assert.AreEqual(2, requestMessage.Properties.Count);
            Assert.AreEqual("AA", requestMessage.Properties[HandlerConstants.StartEpkString]);
            Assert.AreEqual("BB", requestMessage.Properties[HandlerConstants.EndEpkString]);
        }