private static BindingProviderContext CreateBindingContext(string parameterName, Type parameterType)
 {
     ParameterInfo parameter = new StubParameterInfo(parameterName, parameterType);
     Dictionary<string, Type> bindingDataContract = new Dictionary<string, Type>
     {
         { parameterName, parameterType }
     };
     BindingProviderContext context = new BindingProviderContext(parameter, bindingDataContract,
         CancellationToken.None);
     return context;
 }