Ejemplo n.º 1
0
        public async Task When_Passing_Null_Parameters_Then_Exceptions_Are_Thrown()
        {
            // ARRANGE
            InitializeFakeObjects();

            // ACT & ASSERT
            await Assert.ThrowsAsync <ArgumentNullException>(() => _updateResourceOwnerPasswordAction.Execute(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;
 }