Exemplo n.º 1
0
        public async Task WhenPassNullParameterThenExceptionIsThrown()
        {
            // ARRANGE
            InitializeFakeObjects();

            // ACTS & ASSERTS
            await Assert.ThrowsAsync <ArgumentNullException>(() => _getResourceOwnerClaimsAction.Execute(null));

            await Assert.ThrowsAsync <ArgumentNullException>(() => _getResourceOwnerClaimsAction.Execute(string.Empty));
        }
Exemplo n.º 2
0
 public Task <ResourceOwner> GetResourceOwner(string externalSubject)
 {
     return(_getResourceOwnerClaimsAction.Execute(externalSubject));
 }