Exemple #1
0
        public static void AssertValidResponseSchema(string result, ResponseSchemaType schemaType)
        {
            switch (schemaType)
            {
            case ResponseSchemaType.Pathway:
                AssertValidPathwayResponseSchema(result);
                break;

            case ResponseSchemaType.Answers:
                AssertValidAnswersResponseSchema(result);
                break;

            case ResponseSchemaType.Question:
                AssertValidQuestionResponseSchema(result);
                break;

            case ResponseSchemaType.Answer:
                AssertValidAnswerResponseSchema(result);
                break;

            case ResponseSchemaType.CheckServiceDetailsById:
                AssertValidCheckServiceDetailsByIdResponseSchema(result);
                break;

            default:
                throw new InvalidEnumArgumentException(string.Format("{0}{1}{2}", "ResponseSchemaType of ", schemaType.ToString(), "is unsupported"));
            }
        }
Exemple #2
0
        private static void AssertValidResponseSchema(string result, ResponseSchemaType schemaType)
        {
            switch (schemaType)
            {
            case ResponseSchemaType.Pathway:
                AssertValidPathwayResponseSchema(result);
                break;

            case ResponseSchemaType.Answers:
                AssertValidAnswersResponseSchema(result);
                break;

            case ResponseSchemaType.Question:
                AssertValidQuestionResponseSchema(result);
                break;

            case ResponseSchemaType.Answer:
                AssertValidAnswerResponseSchema(result);
                break;

            default:
                throw new InvalidEnumArgumentException("ResponseSchemaType of " + schemaType.ToString() +
                                                       "is unsupported");
            }
        }
Exemple #3
0
        private static void AssertValidResponseSchema(string result, ResponseSchemaType schemaType)
        {
            switch (schemaType)
            {
            case ResponseSchemaType.CheckServiceDetailsById:
                AssertValidCheckServiceDetailsByIdResponseSchema(result);
                break;

            default:
                throw new InvalidEnumArgumentException("ResponseSchemaType of " + schemaType.ToString() +
                                                       "is unsupported");
            }
        }
Exemple #4
0
        public static void AssertValidResponseSchema(string result, ResponseSchemaType schemaType)
        {
            switch (schemaType)
            {
            case ResponseSchemaType.Get:
                AssertValidGetResponseSchema(result);
                break;

            case ResponseSchemaType.GetDetails:
                AssertValidGetDetailsResponseSchema(result);
                break;

            default:
                throw new InvalidEnumArgumentException(string.Format("{0}{1}{2}", "ResponseSchemaType of ", schemaType.ToString(), "is unsupported"));
            }
        }
Exemple #5
0
        public static void AssertValidResponseSchema(string result, ResponseSchemaType schemaType)
        {
            switch (schemaType)
            {
            case ResponseSchemaType.CheckCapacitySummary:
                AssertValidCheckCapacitySummaryResponseSchema(result);
                break;

            case ResponseSchemaType.CheckServiceDetailsById:
                AssertValidCheckServiceDetailsByIdResponseSchema(result);
                break;

            default:
                throw new InvalidEnumArgumentException($"ResponseSchemaType of {schemaType.ToString()} is unsupported");
            }
        }
 private static void AssertValidResponseSchema(string result, ResponseSchemaType schemaType)
 {
     switch (schemaType)
     {
         
         case ResponseSchemaType.CheckServiceDetailsById:
             AssertValidCheckServiceDetailsByIdResponseSchema(result);
             break;
         default:
             throw new InvalidEnumArgumentException("ResponseSchemaType of " + schemaType.ToString() +
                                                "is unsupported");
     }
             }
 private static void AssertValidResponseSchema(string result, ResponseSchemaType schemaType)
 {
     switch (schemaType)
     {
         case ResponseSchemaType.Pathway:
             AssertValidPathwayResponseSchema(result);
             break;
         case ResponseSchemaType.Question:
             AssertValidQuestionResponseSchema(result);
             break;
         case ResponseSchemaType.Answer:
             AssertValidAnswerResponseSchema(result);
             break;
         default:
             throw new InvalidEnumArgumentException("ResponseSchemaType of " + schemaType.ToString() +
                                                "is unsupported");
     }
     
 }