public TimeEntryAuditManagementService(ITimeEntryAuditRepository timeEntryAuditRepository, IPersonManagementService personManagementService, ITimeEntryRepository timeEntryRepository)
        {
            Check.Require(timeEntryAuditRepository != null, "timeEntryRepository may not be null");
            Check.Require(personManagementService != null, "personManagementService may not be null");

            _timeEntryAuditRepository = timeEntryAuditRepository;
            _personManagementService = personManagementService;
            _timeEntryRepository = timeEntryRepository;
        }
Esempio n. 2
0
        public TimeEntryAuditManagementService(ITimeEntryAuditRepository timeEntryAuditRepository, IPersonManagementService personManagementService, ITimeEntryRepository timeEntryRepository)
        {
            Check.Require(timeEntryAuditRepository != null, "timeEntryRepository may not be null");
            Check.Require(personManagementService != null, "personManagementService may not be null");

            _timeEntryAuditRepository = timeEntryAuditRepository;
            _personManagementService  = personManagementService;
            _timeEntryRepository      = timeEntryRepository;
        }
        public virtual void SetUp()
        {
            ServiceLocatorInitializer.Init();

            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            _configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                                    "../../../../app/wrms.Web/NHibernate.config");

            _timeEntryAuditRepository = new TimeEntryAuditRepository();
        }