Пример #1
0
        public void Get()
        {
            var saveResult = config.Save("bar").Result;
            var result     = config.Get <string>().Result;

            Assert.AreEqual(HttpStatusCode.OK, result.StatusCode);
            Assert.AreEqual("bar", result.Data);
        }
Пример #2
0
        public async Task Get()
        {
            var saveResult = await config.Save("bar");

            var result = await config.Get <string>();

            Assert.AreEqual(HttpStatusCode.OK, result.StatusCode);
            Assert.AreEqual("bar", result.Data);
            EnqueueTestComplete();
        }