Esempio n. 1
0
 public void IsUserProfileIncompleteReturnsFalseWhenUsersProfileIsComplete()
 {
     var principal = new ClaimsPrincipal();
     Assert.False(principal.IsUserProfileIncomplete());
 }
Esempio n. 2
0
 public void IsUserProfileIncompleteReturnsTrueWhenUsersProfileIsIncomplete()
 {
     var principal = new ClaimsPrincipal(new ClaimsIdentity(new[] { new Claim(AllReady.Security.ClaimTypes.ProfileIncomplete, "true") }));
     Assert.True(principal.IsUserProfileIncomplete());
 }