public void WebGet_HttpRequest_And_HttpResponse_As_OutParameters_Test() { ContractDescription contract = ContractDescription.GetContract(typeof(HelpPageService)); ContractDescription contractForHelpPage = HttpBehavior.GenerateClientContractDescription(contract); Dictionary <string, Type> inputParameters = new Dictionary <string, Type>(); AssertValidateParameters("WebGetWithHttpRequestResponseAsOutParameters", contractForHelpPage, inputParameters, true); Dictionary <string, Type> outputParameters = new Dictionary <string, Type>(); AssertValidateParameters("WebGetWithHttpRequestResponseAsOutParameters", contractForHelpPage, outputParameters, false); AssertValidateReturnParameter("WebGetWithHttpRequestResponseAsOutParameters", contractForHelpPage, typeof(Message)); }
public void Variables_Different_In_CaseTest() { ContractDescription contract = ContractDescription.GetContract(typeof(HelpPageService)); ContractDescription contractForHelpPage = HttpBehavior.GenerateClientContractDescription(contract); Dictionary <string, Type> inputParameters = new Dictionary <string, Type>(); inputParameters.Add("vArIaBlE1", typeof(string)); AssertValidateParameters("WebGetWithTemplateStringOperationAndParameterDifferentInCase", contractForHelpPage, inputParameters, true); Dictionary <string, Type> outputParameters = new Dictionary <string, Type>(); AssertValidateParameters("WebGetWithTemplateStringOperationAndParameterDifferentInCase", contractForHelpPage, outputParameters, false); AssertValidateReturnParameter("WebGetWithTemplateStringOperationAndParameterDifferentInCase", contractForHelpPage, typeof(void)); }
public void WebGet_With_Default_UriTemplate_And_HttpRequest_As_Parameter_Test() { ContractDescription contract = ContractDescription.GetContract(typeof(HelpPageService)); ContractDescription contractForHelpPage = HttpBehavior.GenerateClientContractDescription(contract); Dictionary <string, Type> inputParameters = new Dictionary <string, Type>(); inputParameters.Add("request", typeof(HttpRequestMessage)); AssertValidateParameters("WebGetWithHttpRequestAsParameter", contractForHelpPage, inputParameters, true); Dictionary <string, Type> outputParameters = new Dictionary <string, Type>(); AssertValidateParameters("WebGetWithHttpRequestAsParameter", contractForHelpPage, outputParameters, false); AssertValidateReturnParameter("WebGetWithHttpRequestAsParameter", contractForHelpPage, typeof(void)); }
public void UriTemplate_Variables_Test_With_WebInvoke() { ContractDescription contract = ContractDescription.GetContract(typeof(HelpPageService)); ContractDescription contractForHelpPage = HttpBehavior.GenerateClientContractDescription(contract); Dictionary <string, Type> inputParameters = new Dictionary <string, Type>(); inputParameters.Add("VARIABLE1", typeof(string)); inputParameters.Add("VARIABLE2", typeof(string)); AssertValidateParameters("WebInvokeWithTemplateStringOperation", contractForHelpPage, inputParameters, true); Dictionary <string, Type> outputParameters = new Dictionary <string, Type>(); AssertValidateParameters("WebInvokeWithTemplateStringOperation", contractForHelpPage, outputParameters, false); AssertValidateReturnParameter("WebInvokeWithTemplateStringOperation", contractForHelpPage, typeof(void)); }
public void WebGet_With_Template_Parameter_Mismatch_Test() { ContractDescription contract = ContractDescription.GetContract(typeof(HelpPageService)); ContractDescription contractForHelpPage = HttpBehavior.GenerateClientContractDescription(contract); Dictionary <string, Type> inputParameters = new Dictionary <string, Type>(); inputParameters.Add("X", typeof(string)); inputParameters.Add("Y", typeof(string)); AssertValidateParameters("WebGetWithTemplateAndParameterNotMatching", contractForHelpPage, inputParameters, true); Dictionary <string, Type> outputParameters = new Dictionary <string, Type>(); AssertValidateParameters("WebGetWithTemplateAndParameterNotMatching", contractForHelpPage, outputParameters, false); AssertValidateReturnParameter("WebGetWithTemplateAndParameterNotMatching", contractForHelpPage, typeof(void)); }