Esempio n. 1
0
        public async Task Single_Send_Test()
        {
            //Act
            var result = await _smsManagerManager.Send(new SingleSendSms
            {
                Mobile = "13800138000",
                Text   = "【笔记荚】您的订单编号:123456,物流信息:654321"
            });

            //Assert
            result.IsSucceed().ShouldBeTrue();
        }
Esempio n. 2
0
        public async Task Batch_Send_Test()
        {
            //Act
            var result = await _smsManagerManager.Send(new BatchSendSms
            {
                Mobile = new List <string>
                {
                    "13800138000",
                    "13800138001"
                },
                Text = "【笔记荚】您的订单编号:123456,物流信息:654321"
            });

            //Assert
            result.IsSucceed().ShouldBeTrue();
        }