示例#1
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");
            }
        }
示例#2
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");
            }
        }
示例#3
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");
            }
        }
示例#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"));
            }
        }
示例#5
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"));
            }
        }
 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");
     }
     
 }