public async Task <AuthoriseResult> Authorise(string username, string password) { var result = new AuthoriseResult(); var user = await FindAsync(username, password); if (user == null) { result.Errors.Add("Invalid credentials"); } else { result.User = user; } return(result); }
public RecordingPaymentAuthoriserStub(AuthoriseResult authResult = AuthoriseResult.Approved) { this.authResult = authResult; }