1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using JCSoft.WX.Framework.Models.ApiRequests;
- using JCSoft.WX.Framework.Models.ApiResponses;
- using Xunit;
- namespace FrameworkCoreTest.Api
- {
- public class DatacubeGetUserSummaryTest : MockPostApiBaseTest<DatacubeGetUserSummaryRequest, DatacubeGetUserSummaryResponse>
- {
- protected override DatacubeGetUserSummaryRequest InitRequestObject()
- {
- return new DatacubeGetUserSummaryRequest
- {
- AccessToken = "123",
- BeginDate = "2015-1-1",
- EndDate = "2015-1-5"
- };
- }
- protected override string GetReturnResult(bool errResult)
- {
- if (errResult) return s_errmsg;
- return @"{
- ""list"": [
- {
- ""ref_date"": ""2014-12-07"",
- ""cumulate_user"": 1217056
- },
- //后续还有ref_date在begin_date和end_date之间的数据
- ]
- }";
- }
- public override DatacubeGetUserSummaryResponse GetResponse()
- {
- return mock_client.Object.Execute(Request);
- }
- }
- }
|