Exemplo n.º 1
0
        public async Task executes_callable_function_with_json_body_and_response()
        {
            var sut      = CrossFirebaseFunctions.Current;
            var json     = new SimpleRequestData(123).ToJson();
            var response = await sut.GetHttpsCallable("convertToLeet").CallAsync <SimpleResponseData>(json);

            Assert.Equal(123, response.InputValue);
            Assert.Equal(1337, response.OutputValue);
        }
Exemplo n.º 2
0
 public async Task executes_callable_function_with_json_body()
 {
     var sut  = CrossFirebaseFunctions.Current;
     var json = new SimpleRequestData(123).ToJson();
     await sut.GetHttpsCallable("convertToLeet").CallAsync(json);
 }