public PersonTraceViewModel()
        {
            Validator   = new ValidationHelper();
            BookingDate = Date = Reminder = DateTime.Today;


            _tracingService = Mvx.Resolve <IMemberTracingService>();
            _settings       = Mvx.Resolve <ISettings>();

            var modesJson   = _settings.GetValue("lookup.TMode", "");
            var outcomeJson = _settings.GetValue("lookup.TOutcome", "");
            var consentJson = _settings.GetValue("lookup.TConsent", "");

            if (!string.IsNullOrWhiteSpace(modesJson))
            {
                Modes = JsonConvert.DeserializeObject <List <CategoryItem> >(modesJson);
            }
            if (!string.IsNullOrWhiteSpace(outcomeJson))
            {
                Outcomes = JsonConvert.DeserializeObject <List <CategoryItem> >(outcomeJson);
            }
            if (!string.IsNullOrWhiteSpace(consentJson))
            {
                Consents = JsonConvert.DeserializeObject <List <CategoryItem> >(consentJson);
            }
        }
 public MemberTracingViewModel(ISettings settings, IDialogService dialogService, IMemberTracingService tracingService, IDashboardService dashboardService, ILookupService lookupService)
 {
     _settings         = settings;
     _dialogService    = dialogService;
     _tracingService   = tracingService;
     _dashboardService = dashboardService;
     _lookupService    = lookupService;
 }
        public void SetUp()
        {
            _clientRepository             = new ClientRepository(_liveSetting);
            _clientIdentifierRepository   = new ClientIdentifierRepository(_liveSetting);
            _personRepository             = new PersonRepository(_liveSetting);
            _clientRelationshipRepository = new ClientRelationshipRepository(_liveSetting);
            _encounterRepository          = new EncounterRepository(_liveSetting);
            _clientStateRepository        = new ClientStateRepository(_liveSetting);
            _memberTracingRepository      = new ObsFamilyTraceResultRepository(_liveSetting);
            _pSmartStoreRepository        = new PSmartStoreRepository(_liveSetting);
            _registryService = new RegistryService(_clientRepository, _clientIdentifierRepository, _personRepository,
                                                   _clientRelationshipRepository, _encounterRepository, _clientStateRepository, _pSmartStoreRepository);

            _memberTracingService = new MemberTracingService(_encounterRepository, _memberTracingRepository,
                                                             _clientStateRepository);
        }