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