示例#1
0
        public async void SendCodeTest()
        {
            var code = new JdCloudSmsCode {
                PhoneNumberList = new List <string> {
                    ""
                },
                Params = new List <string> {
                    "311920"
                }
            };

            var response = await _client.SendCodeAsync(code);

            Assert.NotNull(response);
            Assert.True(response.IsSuccess(), $"{JsonConvert.SerializeObject(response)},{_messageIfError}");
            //Assert.True(string.IsNullOrWhiteSpace(response), response);
        }
 public Task <JdCloudSmsResult> SendCodeAsync(JdCloudSmsCode code) => SendAsync(code);