public void Setup()
        {
            _permissionService = new PermissionServiceMock();
            _userService       = new UserServiceMock();
            _userController    = new UserController(_userService, _permissionService);
            _avatarController  = new AvatarController(_userService, _permissionService)
            {
                // Mock the Http Context because this isn't an actual call avatar controller
                ControllerContext = new ControllerContext {
                    HttpContext = new DefaultHttpContext()
                }
            };

            // User controller
            _userController.ControllerContext = new ControllerContext {
                HttpContext = new DefaultHttpContext()
            };

            _jwtAuthenticatedUser = new User {
                Username = "******", Password = "******"
            };
            _userService.Create(_jwtAuthenticatedUser);
            _jwtAuthenticatedUser = _userService.Authenticate(
                _jwtAuthenticatedUser.Username, _jwtAuthenticatedUser.Password).Result;
        }
        public void Setup()
        {
            _wordrepo          = new WordRepositoryMock();
            _wordService       = new WordService(_wordrepo);
            _projectService    = new ProjectServiceMock();
            _projId            = _projectService.Create(new Project()).Result.Id;
            _permissionService = new PermissionServiceMock();
            _wordController    = new WordController(_wordrepo, _wordService, _projectService, _permissionService);
            _audioController   = new AudioController(_wordrepo, _wordService, _permissionService);

            var util = new Utilities();

            Directory.Delete(util.GenerateFilePath(
                                 Utilities.FileType.Dir, true, "", ""), true);
        }