public RequestTypesController(IRequestTypeManagementService requestTypeManagementService,
                                      IPersonManagementService personManagementService,
                                      IAuthenticationProvider authenticationProvider)
        {
            Check.Require(requestTypeManagementService != null, "requestTypeManagementService may not be null");
            Check.Require(personManagementService != null, "personManagementService may not be null");
            Check.Require(authenticationProvider != null, "authenticationProvider may not be null");

            _requestTypeManagementService = requestTypeManagementService;
            _authenticationProvider       = authenticationProvider;
            _personManagementService      = personManagementService;
        }
        public RequestTypesController(IRequestTypeManagementService requestTypeManagementService,
                                      IPersonManagementService personManagementService,
                                      IAuthenticationProvider authenticationProvider)
        {
            Check.Require(requestTypeManagementService != null, "requestTypeManagementService may not be null");
            Check.Require(personManagementService != null, "personManagementService may not be null");
            Check.Require(authenticationProvider != null, "authenticationProvider may not be null");

            _requestTypeManagementService = requestTypeManagementService;
            _authenticationProvider = authenticationProvider;
            _personManagementService = personManagementService;
        }
Beispiel #3
0
        public RequestManagementService(IRequestRepository requestRepository, IOrgManagementService orgManagementService,
                                        IPersonManagementService personManagementService,
                                        IRequestTypeManagementService requestTypeManagementService,
                                        IRequestStatusManagementService requestStatusManagementService,
                                        IWrmsSystemManagementService wrmsSystemManagementService,
                                        IAgencyManagementService agencyManagementService,
                                        IRequestEstimateManagementService requestEstimateManagementService,
                                        ITimeEntryManagementService timeEntryManagementService)
        {
            Check.Require(requestRepository != null, "requestRepository may not be null");

            _requestRepository                = requestRepository;
            _orgManagementService             = orgManagementService;
            _personManagementService          = personManagementService;
            _requestTypeManagementService     = requestTypeManagementService;
            _requestStatusManagementService   = requestStatusManagementService;
            _wrmsSystemManagementService      = wrmsSystemManagementService;
            _agencyManagementService          = agencyManagementService;
            _requestEstimateManagementService = requestEstimateManagementService;
            _timeEntryManagementService       = timeEntryManagementService;
        }
        public RequestManagementService(IRequestRepository requestRepository, IOrgManagementService orgManagementService,
                                        IPersonManagementService personManagementService,
                                        IRequestTypeManagementService requestTypeManagementService,
                                        IRequestStatusManagementService requestStatusManagementService,
                                        IWrmsSystemManagementService wrmsSystemManagementService,
                                        IAgencyManagementService agencyManagementService,
                                        IRequestEstimateManagementService requestEstimateManagementService,
                                        ITimeEntryManagementService timeEntryManagementService)
        {
            Check.Require(requestRepository != null, "requestRepository may not be null");

            _requestRepository = requestRepository;
            _orgManagementService = orgManagementService;
            _personManagementService = personManagementService;
            _requestTypeManagementService = requestTypeManagementService;
            _requestStatusManagementService = requestStatusManagementService;
            _wrmsSystemManagementService = wrmsSystemManagementService;
            _agencyManagementService = agencyManagementService;
            _requestEstimateManagementService = requestEstimateManagementService;
            _timeEntryManagementService = timeEntryManagementService;
        }
        public void SetUp()
        {
            ServiceLocatorInitializer.Init();

            _requestTypeManagementService =
                MockRepository.GenerateMock<IRequestTypeManagementService>();

            _personManagementService = MockRepository.GenerateMock<IPersonManagementService>();

            _authenticationProvider = MockRepository.GenerateMock<IAuthenticationProvider>();

            _requestTypesController =
                new RequestTypesController(_requestTypeManagementService, _personManagementService,
                                           _authenticationProvider);
        }
        public void SetUp()
        {
            ServiceLocatorInitializer.Init();

            _requestRepository =
                MockRepository.GenerateMock<IRequestRepository>();
            _requestRepository.Stub(r => r.DbContext)
                .Return(MockRepository.GenerateMock<IDbContext>());

            _orgManagementService =
                MockRepository.GenerateMock<IOrgManagementService>();
            _personManagementService =
                MockRepository.GenerateMock<IPersonManagementService>();
            _requestTypeManagementService =
                MockRepository.GenerateMock<IRequestTypeManagementService>();
            _requestStatusManagementService =
                MockRepository.GenerateMock<IRequestStatusManagementService>();

            _wrmsSystemManagementService =
                MockRepository.GenerateMock<IWrmsSystemManagementService>();

            _agencyManagementService =
                MockRepository.GenerateMock<IAgencyManagementService>();

            _timeEntryManagementService = MockRepository.GenerateMock<ITimeEntryManagementService>();

            _requestEstimateManagementService = MockRepository.GenerateMock<IRequestEstimateManagementService>();

            _requestManagementService =
                new RequestManagementService(_requestRepository, _orgManagementService, _personManagementService,
                                             _requestTypeManagementService, _requestStatusManagementService,
                                             _wrmsSystemManagementService, _agencyManagementService,
                                             _requestEstimateManagementService, _timeEntryManagementService);
        }