public void Can_Add_User()
        {
            //Arrange
            var user = new User()
            {
                id = 1,
                user_username = "******",
                user_password = "******",
                user_lastname = "abc",
                user_firstname = "def",
                user_email = "*****@*****.**",
                user_displayname = "abc def",
                user_avatar = "abcxyz.jpg",
                user_active = true
            };

            _mockUnitOfWork.Setup(x => x.UserRepository.Insert(user));

            //Act
            _service.InsertUser(user);

            //Assert
            Assert.AreNotEqual(0, user.id);

            Assert.IsNotNull(user.user_username);
            Assert.AreNotEqual("", user.user_username);
            Assert.AreNotEqual(null, user.user_username);

            Assert.IsNotNull(user.user_email);
            Assert.AreNotEqual("", user.user_email);
            Assert.AreNotEqual(null, user.user_email);
            
        }
 public void UpdateUser(User user)
 {
     _unitOfWork.UserRepository.Update(user);
     Save();
 }
 public void DeleteUser(User user)
 {
     _unitOfWork.UserRepository.Delete(user);
     Save();
 }
 public void InsertUser(User user)
 {
     _unitOfWork.UserRepository.Insert(user);
     Save();
 }