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