public void PrincipalExists_is_true_when_the_principal_is_not_null() { var principalProviderResult = new PrincipalProviderResult { Principal = new Mock <IPrincipal>().Object }; principalProviderResult.PrincipalExists.ShouldBeTrue(); }
public void PrincipalExists_is_false_when_the_principal_is_null() { var principalProviderResult = new PrincipalProviderResult { Principal = null }; principalProviderResult.PrincipalExists.ShouldBeFalse(); }
public void PrincipalExists_is_true_when_the_principal_is_not_null() { var principalProviderResult = new PrincipalProviderResult {Principal = new Mock<IPrincipal>().Object}; principalProviderResult.PrincipalExists.ShouldBeTrue(); }
public void PrincipalExists_is_false_when_the_principal_is_null() { var principalProviderResult = new PrincipalProviderResult {Principal = null}; principalProviderResult.PrincipalExists.ShouldBeFalse(); }