예제 #1
0
 public async Task VerifyOtpTest()
 {
     var service = new VericallOtpService {
         Authentication = _textFixture.Authentication
     };
     await service.VerifyOtp("ENTER-OTP-ID-FROM-SENDOTP", "ENTER-PHONE-NUMBER-FROM-SENDOTP");
 }
예제 #2
0
        public async Task SendOtpTest()
        {
            var service = new VericallOtpService {
                Authentication = _textFixture.Authentication
            };
            var body = new VericallOtpRequestBody
            {
                MaxAttempt = 3,
                Duration   = 10000,
                Length     = 4,
                User       = "******"
            };

            var result = await service.SendOtp("ENTER-RANDOM-OTP-ID", body);

            Assert.NotNull(result);
        }