Exemplo n.º 1
0
 public MedicalEditsService(IMedicalEditsClient medicalEditsClient, IRepository repository, ISettingsService settingsService, ICacheService cacheService)
 {
     _medicalEditsClient = medicalEditsClient;
     _settingsService    = settingsService;
     _cacheService       = cacheService;
     _repository         = repository;
     medicalEditsSetting = _settingsService.GetMedicalEditsSetting();
 }
Exemplo n.º 2
0
        public MedicalEditsBaseTest()
        {
            var mockRepository      = new MockRepository().MockMedicalEditsFindPatient();
            var mockSetting         = new MockSettingService().MockGetMedicalEditsServiceSetting();
            var mockCachSevice      = new MockCacheService().MockActivityTypesCacheList();
            var medicalEditsSetting = mockSetting.Object.GetMedicalEditsSetting();
            var httpClient          = new HttpClient()
            {
                BaseAddress = new Uri(medicalEditsSetting.Url)
            };

            _medicalEditsClient  = new MedicalEditsClient(httpClient);
            _medicalEditsService = new MedicalEditsService(_medicalEditsClient, mockRepository.Object, mockSetting.Object, mockCachSevice.Object);
        }