Exemplo n.º 1
0
        public void WrapTest()
        {
            new BurrowFramework().InitWorkSpace();
            new BurrowFramework().CurrentConversation.SpanWithPostBacks();
            string wrapped = new WebUtil().WrapUrlWithConversationInfo("http://test.com");

            Assert.IsTrue(wrapped.Contains("http://test.com?_NHibernate.Burrow.ConversationId_="));
            wrapped = new WebUtil().WrapUrlWithConversationInfo("http://test.com?t=1");
            Assert.IsTrue(wrapped.Contains("http://test.com?t=1&_NHibernate.Burrow.ConversationId_="));
            new BurrowFramework().CurrentConversation.FinishSpan();
            new BurrowFramework().CloseWorkSpace();
        }