public void GetRoles_UserIdentityIsNull_ReturnsEmptyCollection() { var sut = new NullIdentityProvider <int>(); var roles = sut.GetRoles(); Assert.AreEqual(0, roles.Count); }
public void GetUserId_UserIdentityIsNull_ReturnsDefaultValue() { var sut = new NullIdentityProvider <int>(); Assert.AreEqual(0, sut.GetUserId()); }
public void IsAuthenticated_UserIdentityIsNull_ReturnsFalse() { var sut = new NullIdentityProvider <int>(); Assert.IsFalse(sut.IsAuthenticated); }