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);
        }
Ejemplo n.º 2
0
        public ActionResult <LoginFormResponse> Post([FromBody] OtpLoginForm otpLoginForm)
        {
            LoginFormResponse loginFormResponse = _userBiz.AuthenticateUserByMobileNumber(otpLoginForm);

            return(Ok(loginFormResponse));
        }