Пример #1
0
        public void Test()
        {
            var proxy = new SessionProxy(BaseAddress);
            var session = proxy.Get(Token, AppId).Result;
            Assert.AreEqual(UserId, session.UserId);
            Assert.AreEqual(AppSettings, session.Settings);


            var ping = proxy.Ping(Token).Result;
            Assert.IsTrue(ping.Ok);

            proxy.Reset(Token).Wait();

            ping = proxy.Ping(Token).Result;
            Assert.IsFalse(ping.Ok);
        }