Exemple #1
0
        public void GetCounts()
        {
            // Arrange
            var request = new GetCountsRequest();

            request.Params.Add(new GetCountsRequestParams
            {
                MinCount = 100
            });

            // Act
            var response = _client.Server.GetCountsAsync(request).Result;

            // Assert
            Assert.AreEqual(Status.Success, response.Result.Status);
        }
Exemple #2
0
 public async Task <RpcJsonResponse <GetCountsResult> > GetCountsAsync(GetCountsRequest request)
 {
     return(await PostAsync <RpcJsonResponse <GetCountsResult>, GetCountsResult>(request));
 }