public async Task Ping() { Dictionary <string, object> response = await LCCloud.Run("ping"); TestContext.WriteLine(response["result"]); Assert.AreEqual(response["result"], "pong"); }
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"); }
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"); }
public async Task CallWithoutParams() { await LCCloud.Run("hello"); }