Пример #1
0
        public BlaiseSurveyApi(ConnectionModel connectionModel = null)
        {
            _surveyService     = UnityProvider.Resolve <ISurveyService>();
            _surveyMetaService = UnityProvider.Resolve <ISurveyMetaService>();
            _caseService       = UnityProvider.Resolve <ICaseService>();

            var configurationProvider = UnityProvider.Resolve <IBlaiseConfigurationProvider>();

            _connectionModel = connectionModel ?? configurationProvider.GetConnectionModel();
        }
        public void SetupTests()
        {
            _connectionModel = new ConnectionModel();
            _instrumentName  = "TestInstrumentName";
            _serverParkName  = "TestServerParkName";

            _dataModelServiceMock = new Mock <IDataModelService>();

            _sut = new SurveyMetaService(_dataModelServiceMock.Object);
        }
Пример #3
0
 internal BlaiseSurveyApi(
     ISurveyService surveyService,
     ISurveyMetaService surveyMetaService,
     ICaseService caseService,
     ConnectionModel connectionModel)
 {
     _surveyService     = surveyService;
     _surveyMetaService = surveyMetaService;
     _caseService       = caseService;
     _connectionModel   = connectionModel;
 }