public void CanUpdateUserInRepository()
        {
            var user = new User
            {
                UserName = "******",
                Bio = "Heyoooooo",
                Email = "*****@*****.**",
                Password = "******",
                DateJoined = DateTime.Now,
                Blog = new Uri("http://blog.msdn.com/blog"),
                IsEnabled = true,
                IsPublic = true,
                EventsAttended = new List<Event>(),
                EventsOrganized = new List<Event>(),
                EventsPresented = new List<Event>(),
                Roles = new List<Role>()
            };

            user.AddRole(_roles[0]);

            _repository.CreateUser(user);

            var originalUserName = user.UserName.Clone();
            var newUserName = "******";
            user.UserName = newUserName;

            _repository.UpdateUser(user);

            var equivalentUser = _repository.GetUserById(user.UserId);
            Assert.AreEqual(newUserName, equivalentUser.UserName, "UserNames should be equivalent");
        }
        public void CanAddNewUserToRepository()
        {
            var user = new User
                           {
                               UserName = "******",
                               Bio = "HAR HAR HAR",
                               Email = "*****@*****.**",
                               Password = "******",
                               DateJoined = DateTime.Now,
                               IsEnabled = true,
                               IsPublic = true,
                               EventsAttended = new List<Event>(),
                               EventsOrganized = new List<Event>(),
                               EventsPresented = new List<Event>(),
                               Roles = new List<Role>()
                           };

            user.AddRole(_roles[0]);

            _repository.CreateUser(user);
            var users = _repository.GetAllUsers();
            var confirmUser = _repository.GetUserById(user.UserId);

            Assert.IsTrue(users.Count > _users.Count);
            Assert.AreEqual(user.UserId, confirmUser.UserId, "User Ids should be equivalent!");
        }