public void Login() { //Arrange int companyIDArrange = 1; //Act int companyID = companyManager.CompanyLogin("*****@*****.**", "test123"); //Assert Assert.AreEqual(companyIDArrange, companyID); }
public IActionResult LoginForm(InlogFormData inlogFormData) { bool empty = formlogic.NullCheck(inlogFormData.UsernameTextboxData, inlogFormData.PasswordTextboxData); if (empty == false) { int id = companyManger.CompanyLogin(inlogFormData.UsernameTextboxData, inlogFormData.PasswordTextboxData); if (id != 0) { SetSession(id); return(View("~/Views/Home/Index.cshtml")); } } return(View("~/Views/Start/Index.cshtml")); }