public void CanAddUser() { User user = new User { Email = "*****@*****.**", EmailConfirmed = false, LockoutEnabled = false, LockoutEndDateUtc = new DateTime(2018, 1, 1), AccessFailedCount = 0, UserName = "******", PhoneNumberConfirmed = false, TwoFactorEnabled = false, }; repo.Insert(user); List <User> users = repo.GetUsers().ToList(); Assert.AreEqual(5, users.Count); Assert.AreEqual("Added-Test-User", users[4].Id); Assert.AreEqual("*****@*****.**", users[4].Email); Assert.AreEqual("Added Test User", users[4].UserName); Assert.AreEqual(0, users[4].AccessFailedCount); Assert.IsFalse(users[4].EmailConfirmed); Assert.IsFalse(users[4].PhoneNumberConfirmed); Assert.IsFalse(users[4].TwoFactorEnabled); Assert.IsFalse(users[4].LockoutEnabled); }