Example #1
0
        public OrgsController(IOrgManagementService orgManagementService,
                              IOrgSearchManagementService orgSearchManagementService,
                              IPersonManagementService personManagementService,
                              IAuthenticationProvider authenticationProvider)
        {
            Check.Require(orgManagementService != null, "orgManagementService may not be null");

            _orgManagementService       = orgManagementService;
            _orgSearchManagementService = orgSearchManagementService;
            _personManagementService    = personManagementService;
            _authenticationProvider     = authenticationProvider;
        }
Example #2
0
        public OrgsController(IOrgManagementService orgManagementService,
                              IOrgSearchManagementService orgSearchManagementService,
                              IPersonManagementService personManagementService,
                              IAuthenticationProvider authenticationProvider)
        {
            Check.Require(orgManagementService != null, "orgManagementService may not be null");

            _orgManagementService = orgManagementService;
            _orgSearchManagementService = orgSearchManagementService;
            _personManagementService = personManagementService;
            _authenticationProvider = authenticationProvider;
        }
Example #3
0
        public void SetUp()
        {
            ServiceLocatorInitializer.Init();

            _orgManagementService =
                MockRepository.GenerateMock<IOrgManagementService>();

            _orgSearchManagementService =
                MockRepository.GenerateMock<IOrgSearchManagementService>();
            _personManagementService = MockRepository.GenerateMock<IPersonManagementService>();
            _authenticationProvider = MockRepository.GenerateMock<IAuthenticationProvider>();
            _orgsController =
                new OrgsController(_orgManagementService, _orgSearchManagementService, _personManagementService,
                                   _authenticationProvider);
        }