public void ShouldBeAbleToAuthenticate() { var _strUser = "******"; var _strPass = "******"; var _objDao = new LoginDAO(mock.Object); Assert.AreEqual(_objDao.Auth(_strUser, _strPass).Id, 1); }
public void ShouldThrowExceptionIfUserDoesNotExists() { var _strUser = "******"; var _strPass = "******"; var _objDao = new LoginDAO(mock.Object); Assert.ThrowsException <Exception>(() => { _objDao.Auth(_strUser, _strPass); }); }
public void ShouldThrowExceptionIfAuthenticationFails() { var _strUser = "******"; var _strPass = "******"; var _objDao = new LoginDAO(mock.Object); Assert.ThrowsException <Exception>(() => { _objDao.Auth(_strUser, _strPass); }); }