public void When_Pass_Null_Parameter_Then_Exception_Is_Thrown() { // ARRANGE InitializeFakeObjects(); // ACT & ASSERT Assert.Throws <ArgumentNullException>(() => _updateResourceOwnerPasswordParameterValidator.Validate(null)); }
public async Task<bool> UpdateResourceOwnerPassword(UpdateResourceOwnerPasswordParameter request) { _managerEventSource.StartToUpdateResourceOwnerPassword(request.Login); _updateResourceOwnerPasswordParameterValidator.Validate(request); var result = await _updateResourceOwnerPasswordAction.Execute(request); _managerEventSource.FinishToUpdateResourceOwnerPassword(request.Login); return result; }