public static IHuobiClient CreateResponseClient <T>(T response, HuobiClientOptions options = null) { var client = (HuobiClient)CreateClient(options); SetResponse(client, JsonConvert.SerializeObject(response)); return(client); }
public static IHuobiClient CreateResponseClient(string response, HuobiClientOptions options = null) { var client = (HuobiClient)CreateClient(options); SetResponse(client, response); return(client); }
public static IHuobiClient CreateClient(HuobiClientOptions options = null) { IHuobiClient client; client = options != null ? new HuobiClient(options) : new HuobiClient(new HuobiClientOptions() { LogVerbosity = LogVerbosity.Debug }); client.RequestFactory = Mock.Of <IRequestFactory>(); return(client); }