Exemple #1
0
        public async Task CachedLatest_ShouldNotGet_JsonFile()
        {
            var update = AppUpdate(HttpResponseFromFile("win-update.json"));

            update.CachedLatest(false);

            await _httpClient.DidNotReceiveWithAnyArgs().GetAsync("");
        }
        public async Task send_async_should_not_invoke_client_post_json_and_return_null_when_url_is_empty()
        {
            const string method = "test";

            _proxy = new JsonRpcClientProxy(_client, null, LimboLogs.Instance);
            var @params = new List <object> {
                "arg1", 1, new object()
            };
            var result = await _proxy.SendAsync <object>(method, @params);

            result.Should().BeNull();
            await _client.DidNotReceiveWithAnyArgs().PostJsonAsync <RpcResult <object> >(null);
        }