Beispiel #1
0
        public async Task Ping()
        {
            Dictionary <string, object> response = await LCCloud.Run("ping");

            TestContext.WriteLine(response["result"]);
            Assert.AreEqual(response["result"], "pong");
        }
Beispiel #2
0
        public async Task Call()
        {
            Dictionary <string, object> response = await LCCloud.Run("hello", parameters : new Dictionary <string, object> {
                { "name", "world" }
            });

            TestContext.WriteLine(response["result"]);
            Assert.AreEqual(response["result"], "hello, world");
        }
Beispiel #3
0
        public async Task Hello()
        {
            string result = await LCCloud.Run <string>("hello", new Dictionary <string, object> {
                { "name", "world" }
            });

            TestContext.WriteLine(result);
            Assert.AreEqual(result, "hello, world");
        }
Beispiel #4
0
 public async Task CallWithoutParams()
 {
     await LCCloud.Run("hello");
 }