Nfield.Services.Implementation.NfieldAddressesService.CheckSurveyIdAndSamplingPointId C# (CSharp) Method

CheckSurveyIdAndSamplingPointId() private static method

private static CheckSurveyIdAndSamplingPointId ( string surveyId, string samplingPointId ) : void
surveyId string
samplingPointId string
return void
        private static void CheckSurveyIdAndSamplingPointId(string surveyId, string samplingPointId)
        {
            if (surveyId == null)
                throw new ArgumentNullException("surveyId");
            if (surveyId.Trim().Length == 0)
                throw new ArgumentException("surveyId cannot be empty");
            if (samplingPointId == null)
                throw new ArgumentNullException("samplingPointId");
            if (samplingPointId.Trim().Length == 0)
                throw new ArgumentException("samplingPointId cannot be empty");
        }