public void AddUserTest()
        {
            // act

            _userRepositoryMock.Setup(x => x.Add(It.IsAny<User>()));
            var userManager = new UserManager(_userRepositoryMock.Object);

            // actual
            var actual = userManager.AddUser("test");

            // assert
            Assert.AreEqual(actual.Username, "test");
        }
 public RedirectToRouteResult Add(UserModel user)
 {
     UserManager manager = new UserManager();
     manager.AddUser(user.UserName, user.Password, user.ClientId, user.ClientName);
     return RedirectToAction("Index", "Home");
 }