public async Task When_Passing_Null_Parameters_Then_Exceptions_Are_Thrown() { // ARRANGE InitializeFakeObjects(); // ACTS & ASSERTS await Assert.ThrowsAsync <ArgumentNullException>(() => _updateUserCredentialsOperation.Execute(null, null)); await Assert.ThrowsAsync <ArgumentNullException>(() => _updateUserCredentialsOperation.Execute("subject", null)); }
public Task <bool> UpdateCredentials(string subject, string newPassword) { return(_updateUserCredentialsOperation.Execute(subject, newPassword)); }