public RequestEstimatesController(IRequestEstimateManagementService requestEstimateManagementService,
                                          IPersonManagementService personManagementService,
                                          IAuthenticationProvider authenticationProvider)
        {
            Check.Require(requestEstimateManagementService != null, "requestEstimateManagementService may not be null");
            Check.Require(personManagementService != null, "personManagementService may not be null");
            Check.Require(authenticationProvider != null, "authenticationProvider may not be null");

            _requestEstimateManagementService = requestEstimateManagementService;
            _personManagementService = personManagementService;
            _authenticationProvider = authenticationProvider;
        }
示例#2
0
        public RequestEstimatesController(IRequestEstimateManagementService requestEstimateManagementService,
                                          IPersonManagementService personManagementService,
                                          IAuthenticationProvider authenticationProvider)
        {
            Check.Require(requestEstimateManagementService != null, "requestEstimateManagementService may not be null");
            Check.Require(personManagementService != null, "personManagementService may not be null");
            Check.Require(authenticationProvider != null, "authenticationProvider may not be null");

            _requestEstimateManagementService = requestEstimateManagementService;
            _personManagementService          = personManagementService;
            _authenticationProvider           = authenticationProvider;
        }
示例#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();

            _requestEstimateRepository =
                MockRepository.GenerateMock<IRequestEstimateRepository>();
            _requestEstimateRepository.Stub(r => r.DbContext)
                .Return(MockRepository.GenerateMock<IDbContext>());

            _requestEstimateManagementService =
                new RequestEstimateManagementService(_requestEstimateRepository);
        }
        public void SetUp()
        {
            ServiceLocatorInitializer.Init();

            _requestEstimateManagementService =
                MockRepository.GenerateMock<IRequestEstimateManagementService>();

            _personManagementService = MockRepository.GenerateMock<IPersonManagementService>();

            _authenticationProvider = MockRepository.GenerateMock<IAuthenticationProvider>();

            _requestEstimatesController =
                new RequestEstimatesController(_requestEstimateManagementService, _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);
        }