public void DefaultConstructorNotAuthenticated() { Identity ident = new Identity(); Assert.IsFalse(ident.IsAuthenticated); Assert.AreEqual(ident.Username, string.Empty); Assert.AreEqual(ident.UserId, 0); }
public void UserConstructorPropertiesSet() { Identity ident = new Identity(1, "cyberkruz"); Assert.AreEqual(ident.Username, "cyberkruz"); Assert.AreEqual(ident.UserId, 1); }
public void UserConstructorIsAuthenticated() { Identity ident = new Identity(1, "cyberkruz"); Assert.IsTrue(ident.IsAuthenticated); }