public void UnitTest11(string userName)
        {
            var ActualResult = _userBiz.AuthenticateUserByMobileNumber(new OtpLoginForm()
            {
                MobileNumber = userName,
                Otp          = "Fake Otp"
            });

            Assert.NotNull(ActualResult);
            Assert.True(ActualResult.StatusCode == 400);
            Assert.NotNull(ActualResult.ErrorList);
            Assert.True(ActualResult.ErrorList.Count > 0);
        }
예제 #2
0
        public ActionResult <LoginFormResponse> Post([FromBody] OtpLoginForm otpLoginForm)
        {
            LoginFormResponse loginFormResponse = _userBiz.AuthenticateUserByMobileNumber(otpLoginForm);

            return(Ok(loginFormResponse));
        }