public ClientEncounterViewModel(ISettings settings, IDialogService dialogService, IEncounterService encounterService, IObsService obsService) { VisitTypes = CustomLists.VisitTypeList; _settings = settings; _dialogService = dialogService; _encounterService = encounterService; _obsService = obsService; BirthDate = DateTime.Today; SelectedVisitType = VisitTypes.First(); }
public void SetUp() { _liveSetting = new LiveSetting(_database.DatabasePath); _formRepository = new FormRepository(_liveSetting, new QuestionRepository(_liveSetting, new ConceptRepository(_liveSetting, new CategoryRepository(_liveSetting)))); _encounterRepository = new EncounterRepository(_liveSetting); _obsRepository = new ObsRepository(_liveSetting); _clientStateRepository = new ClientStateRepository(_liveSetting); _formId = TestDataHelpers._formId; _form = _formRepository.GetWithQuestions(_formId, true); _encounterNew = TestHelpers.CreateTestEncounters(_form); _encounter = TestHelpers.CreateTestEncountersWithObs(_form); _navigationEngine = new NavigationEngine(); _validationEngine = new ValidationEngine(); _obsService = new ObsService(_formRepository, _encounterRepository, _obsRepository, _navigationEngine, _validationEngine, _clientStateRepository); }