Exemple #1
0
        public void Given_Valid_Arguments_When_I_Call_GetInstalledSurvey_Then_The_Correct_Service_Method_Is_Called()
        {
            //act
            _sut.GetInstalledSurvey(_instrumentName, _serverParkName);

            //assert
            _catiServiceMock.Verify(v => v.GetInstalledSurvey(_connectionModel, _instrumentName, _serverParkName), Times.Once);
        }
        public CatiInstrumentDto GetCatiInstrument(string serverParkName, string instrumentName)
        {
            instrumentName.ThrowExceptionIfNullOrEmpty("instrumentName");
            serverParkName.ThrowExceptionIfNullOrEmpty("serverParkName");

            var instrument = _blaiseCatiApi.GetInstalledSurvey(instrumentName, serverParkName);

            return(GetCatiInstrumentDto(instrument));
        }