Esempio n. 1
0
        public void Given_Valid_Arguments_When_I_Call_GetInstalledSurveys_Then_The_Correct_Service_Method_Is_Called()
        {
            //act
            _sut.GetInstalledSurveys(_serverParkName);

            //assert
            _catiServiceMock.Verify(v => v.GetInstalledSurveys(_connectionModel, _serverParkName), Times.Once);
        }
Esempio n. 2
0
        public List <CatiInstrumentDto> GetCatiInstruments()
        {
            var catiInstruments = new List <CatiInstrumentDto>();
            var serverParks     = _blaiseServerParkApi.GetNamesOfServerParks();

            foreach (var serverPark in serverParks)
            {
                var instruments = _blaiseCatiApi.GetInstalledSurveys(serverPark);
                catiInstruments.AddRange(GetCatiInstruments(instruments));
            }

            return(catiInstruments);
        }