public static LiveCoinClient CreateResponseClient(string response, LiveCoinClientOptions options = null) { var client = CreateClient(options); SetResponse(client, response); return(client); }
public static LiveCoinClient CreateClient(LiveCoinClientOptions options = null) { LiveCoinClient client; client = options != null ? new LiveCoinClient(options) : new LiveCoinClient(); client.RequestFactory = Mock.Of <IRequestFactory>(); return(client); }
/// <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; }
/// <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; }