public void WhenCredentialIsNull_ThrowsArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         UserExtensions.MatchesOwnerScope(new User(), null);
     });
 }
 public void WhenUserIsNull_ThrowsArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         UserExtensions.MatchesOwnerScope(null, new Credential());
     });
 }