public void DeleteUser__ReturnTrue()
        {
            var  userRepo = new UserManagmentRepository();
            bool result   = userRepo.Delete("ed0be8b7-96ce-40a0-ac8f-8765ef266385").Result;

            Assert.False(result);
        }
        public void DeleteUser__ReturnFalse()
        {
            var  userRepo = new UserManagmentRepository();
            bool result   = userRepo.Delete("karim").Result;

            Assert.False(result);
        }
        public void EditUser__ReturnFalse()
        {
            var userRepo      = new UserManagmentRepository();
            var userViewModel = new Entities.EditUserRoleViewModel();

            userViewModel.Email    = "*****@*****.**";
            userViewModel.RoleName = null;
            bool result = userRepo.Edit(userViewModel).Result;

            Assert.False(result);
        }
        public void CreateNewUser__ReturnTrue()
        {
            var userRepo      = new UserManagmentRepository();
            var userViewModel = new Entities.CreateUserRoleViewModel();

            userViewModel.Email    = "*****@*****.**";
            userViewModel.Password = "******";
            bool result = userRepo.CreateAsync(userViewModel, "www.google.com").Result;

            Assert.False(result);
        }
        public void EditUser__ReturnTrue()
        {
            var userRepo      = new UserManagmentRepository();
            var userViewModel = new Entities.EditUserRoleViewModel();

            userViewModel.Email    = "*****@*****.**";
            userViewModel.RoleName = new List <string> {
                "SuperAdmin"
            };
            bool result = userRepo.Edit(userViewModel).Result;

            Assert.True(result);
        }