コード例 #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();
        }
コード例 #2
0
        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;
 }