Пример #1
0
        public static LiveCoinClient CreateResponseClient(string response, LiveCoinClientOptions options = null)
        {
            var client = CreateClient(options);

            SetResponse(client, response);
            return(client);
        }
Пример #2
0
        public static LiveCoinClient CreateClient(LiveCoinClientOptions options = null)
        {
            LiveCoinClient client;

            client = options != null ? new LiveCoinClient(options) : new LiveCoinClient();
            client.RequestFactory = Mock.Of <IRequestFactory>();
            return(client);
        }
Пример #3
0
 /// <summary>
 /// Set the default options to be used when creating new clients
 /// </summary>
 /// <param name="options"></param>
 public static void SetDefaultOptions(LiveCoinClientOptions options)
 {
     defaultOptions = options;
 }
Пример #4
0
 /// <summary>
 /// Create a new instance of LiveCoinClient using provided options
 /// </summary>
 /// <param name="options">The options to use for this client</param>
 public LiveCoinClient(LiveCoinClientOptions options) : base("LiveCoin", options, options.ApiCredentials == null ? null : new LiveCoinAuthenticationProvider(options.ApiCredentials))
 {
     manualParseError   = true;
     arraySerialization = ArrayParametersSerialization.MultipleValues;
     requestBodyFormat  = RequestBodyFormat.FormData;
 }