public void FrequenciesApi_Get_SPARFrequencies_Success()
        {
            var sparFrequenciesResponse = frequenciesApi.GetSPARFrequenciesWithHttpInfo();

            Assert.IsTrue(sparFrequenciesResponse.StatusCode == HttpStatusCode.OK, "Response should be 200 - OK");
            Assert.IsTrue(sparFrequenciesResponse.Data.Data.GetType() == typeof(Dictionary <string, Frequency>), "Response result should be of Frequency Dictionary type.");
            Assert.IsTrue(sparFrequenciesResponse.Data.Data.Count != 0, "Response data should not be null.");
        }
Exemple #2
0
        public void FrequenciesApi_Get_SPARFrequencies_Success()
        {
            _frequenciesApi = new FrequenciesApi(CommonFunctions.BuildConfiguration(Engine.SPAR));
            var sparFrequenciesResponse = _frequenciesApi.GetSPARFrequenciesWithHttpInfo();

            Assert.IsTrue(sparFrequenciesResponse.StatusCode == HttpStatusCode.OK, "Response should be 200 - OK");
            Assert.IsTrue(sparFrequenciesResponse.Data.GetType() == typeof(Dictionary <string, Frequency>), "Response result should be of Frequency Dictionary type.");
            Assert.IsTrue(sparFrequenciesResponse.Data.Count != 0, "Response data should not be null.");
        }