Пример #1
0
        public async Task ExecuteRestApiPost()
        {
            const string echo = "Thing to echo";

            var json     = JObject.Parse(@"{'toecho':'" + echo + "'}");
            var response = await _client.ExecuteRestApiAsync <dynamic>("RestWSTest", json);

            Assert.IsNotNull(response);
            Assert.AreEqual(echo, response);
        }
Пример #2
0
        public async Task ExecuteRestApiGet()
        {
            const string echo = "stuff";

            var response = await _client.ExecuteRestApiAsync <dynamic>("RestWSTest");

            Assert.IsNotNull(response);
            Assert.AreEqual(echo, response);
        }