Exemple #1
0
        public async Task When_Pass_Null_Parameters_Then_Exceptions_Are_Thrown()
        {
            // ARRANGE
            InitializeFakeObjects();

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

            await Assert.ThrowsAsync <ArgumentNullException>(() => _updateUserClaimsOperation.Execute("subject", null));
        }
Exemple #2
0
 public Task <bool> UpdateClaims(string subject, IEnumerable <ClaimAggregate> claims)
 {
     return(_updateUserClaimsOperation.Execute(subject, claims));
 }