public LookupService(ICountyRepository countyRepository, ISubCountyRepository subCountyRepository, IPracticeRepository practiceRepository, IPracticeTypeRepository practiceTypeRepository, IMaritalStatusRepository maritalStatusRepository, IKeyPopRepository keyPopRepository, IIdentifierTypeRepository identifierTypeRepository, IRelationshipTypeRepository relationshipTypeRepository, IEncounterTypeRepository encounterTypeRepository, ICategoryRepository categoryRepository) { _countyRepository = countyRepository; _subCountyRepository = subCountyRepository; _practiceRepository = practiceRepository; _practiceTypeRepository = practiceTypeRepository; _maritalStatusRepository = maritalStatusRepository; _keyPopRepository = keyPopRepository; _identifierTypeRepository = identifierTypeRepository; _relationshipTypeRepository = relationshipTypeRepository; _encounterTypeRepository = encounterTypeRepository; _categoryRepository = categoryRepository; }
public void SetUp() { _liveSetting = new LiveSetting(_database.DatabasePath); _countyRepository = new CountyRepository(_liveSetting); _subCountyRepository = new SubCountyRepository(_liveSetting); _practiceTypeRepository = new PracticeTypeRepository(_liveSetting); _practiceRepository = new PracticeRepository(_liveSetting); _maritalStatusRepository = new MaritalStatusRepository(_liveSetting); _keyPopRepository = new KeyPopRepository(_liveSetting); _identifierTypeRepository = new IdentifierTypeRepository(_liveSetting); _relationshipTypeRepository = new RelationshipTypeRepository(_liveSetting); _categoryRepository = new CategoryRepository(_liveSetting); _lookupService = new LookupService(_countyRepository, _subCountyRepository, _practiceRepository, _practiceTypeRepository, _maritalStatusRepository, _keyPopRepository, _identifierTypeRepository, _relationshipTypeRepository, _encounterTypeRepository, _categoryRepository); }