private void CheckIsAccountLocked(string account) { if (_FailCounter.IsAccountLocked(account)) { throw new FailedTooManyTimesException(); } }
private void GivenAccountIsLocked(bool isLocked) { _FailedCounter.IsAccountLocked(_DefaultAccount).Returns(isLocked); }