public void UnitTest1() { var ActualResult = _userBiz.AuthenticateUser(null); Assert.NotNull(ActualResult); Assert.True(ActualResult.StatusCode == 400); Assert.Null(ActualResult.Response); Assert.NotNull(ActualResult.ErrorList); Assert.True(ActualResult.ErrorList.Count > 0); }
public ActionResult <LoginFormResponse> Post([FromBody] LoginForm loginForm) { LoginFormResponse loginFormResponse = _userBiz.AuthenticateUser(loginForm); return(Ok(loginFormResponse)); }