private void InitialiseTestObjects()
        {
            _roles = new ADRoleProvider();
            _teams = new ADTeamRepository();
            _users = new ADMembershipServiceTestFacade(new ADMembershipService(), _testSupport);
            _repos = new ADRepositoryRepository();

            _service = new RepositoryPermissionService
            {
                Repository = _repos, RoleProvider = _roles, TeamRepository = _teams
            };
        }
        protected void InitialiseTestObjects()
        {
            _teams = new EFTeamRepository { CreateContext = () => _connection.GetContext() };
            _users = new EFMembershipService { CreateContext = () => _connection.GetContext() };
            _repos = new EFRepositoryRepository { CreateContext = () => _connection.GetContext() };
            _roles = new EFRoleProvider { CreateContext = () => _connection.GetContext() };

            _service = new RepositoryPermissionService
            {
                Repository = _repos,
                TeamRepository = _teams,
                RoleProvider = _roles
            };

            new AutomaticUpdater().RunWithContext(_connection.GetContext());
        }