public WrmsSystemManagementService(IWrmsSystemRepository wrmsSystemRepository, IPersonManagementService personManagementService) { Check.Require(wrmsSystemRepository != null, "wrmsSystemRepository may not be null"); _wrmsSystemRepository = wrmsSystemRepository; _personManagementService = personManagementService; }
public TimeEntryManagementService(ITimeEntryRepository timeEntryRepository, IRequestRepository requestRepository, IWrmsSystemRepository wrmsSystemRepository, IPersonManagementService personManagementService) { Check.Require(timeEntryRepository != null, "timeEntryRepository may not be null"); Check.Require(requestRepository != null, "requestRepository may not be null"); Check.Require(wrmsSystemRepository != null, "wrmsSystemRepository may not be null"); Check.Require(personManagementService != null, "personManagementService may not be null"); _timeEntryRepository = timeEntryRepository; _personManagementService = personManagementService; _requestRepository = requestRepository; _wrmsSystemRepository = wrmsSystemRepository; _personManagementService = personManagementService; }
public WrmsSystemSearchManagementService(IWrmsSystemRepository wrmsSystemRepository, IPersonManagementService personManagementService) { _wrmsSystemRepository = wrmsSystemRepository; _personManagementService = personManagementService; }
public virtual void SetUp() { ServiceLocatorInitializer.Init(); string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies(); _configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies, "../../../../app/wrms.Web/NHibernate.config"); _wrmsSystemRepository = new WrmsSystemRepository(); }
public void SetUp() { ServiceLocatorInitializer.Init(); _timeEntryRepository = MockRepository.GenerateMock<ITimeEntryRepository>(); _timeEntryRepository.Stub(r => r.DbContext) .Return(MockRepository.GenerateMock<IDbContext>()); _wrmsSystemRepository = MockRepository.GenerateMock<IWrmsSystemRepository>(); _wrmsSystemRepository.Stub(r => r.DbContext) .Return(MockRepository.GenerateMock<IDbContext>()); _requestRepository = MockRepository.GenerateMock<IRequestRepository>(); _requestRepository.Stub(r => r.DbContext) .Return(MockRepository.GenerateMock<IDbContext>()); _personManagementService = MockRepository.GenerateMock<IPersonManagementService>(); _timeEntryManagementService = new TimeEntryManagementService(_timeEntryRepository, _requestRepository, _wrmsSystemRepository, _personManagementService); }