12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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 CustomserviceKfsessionCloseTest : MockPostApiBaseTest<CustomserviceKfsessionCloseRequest, CustomserviceKfsessionCloseResponse>
- {
- protected override CustomserviceKfsessionCloseRequest InitRequestObject()
- {
- return new CustomserviceKfsessionCloseRequest
- {
- AccessToken = "123",
- KfAccount = "kf@kf.com",
- OpenId = "asdf",
- Text = "zsdfa"
- };
- }
- protected override string GetReturnResult(bool errResult)
- {
- if (errResult) return s_errmsg;
- return @" {
- ""errcode"" : 0,
- ""errmsg"" : ""ok""
- }";
- }
- public override CustomserviceKfsessionCloseResponse GetResponse()
- {
- return mock_client.Object.Execute(Request);
- }
- }
- }
|