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.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"); } }
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"); } }
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")); } }
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.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"); } }