Beispiel #1
0
        public void When_Pass_Null_Parameter_Then_Exception_Is_Thrown()
        {
            // ARRANGE
            InitializeFakeObjects();

            // ACT & ASSERT
            Assert.Throws <ArgumentNullException>(() => _updateResourceOwnerClaimsParameterValidator.Validate(null));
        }
 public async Task<bool> UpdateResourceOwnerClaims(UpdateResourceOwnerClaimsParameter request)
 {
     _managerEventSource.StartToUpdateResourceOwnerClaims(request.Login);
     _updateResourceOwnerClaimsParameterValidator.Validate(request);
     var result = await _updateResourceOwnerClaimsAction.Execute(request);
     _managerEventSource.FinishToUpdateResourceOwnerClaims(request.Login);
     return result;
 }