Example #1
0
        public static IHuobiClient CreateResponseClient <T>(T response, HuobiClientOptions options = null)
        {
            var client = (HuobiClient)CreateClient(options);

            SetResponse(client, JsonConvert.SerializeObject(response));
            return(client);
        }
Example #2
0
        public static IHuobiClient CreateResponseClient(string response, HuobiClientOptions options = null)
        {
            var client = (HuobiClient)CreateClient(options);

            SetResponse(client, response);
            return(client);
        }
Example #3
0
        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);
        }