From ddfdd85f61e441509357fe77ba151011e44b91dc Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 30 Jul 2021 18:25:12 +0800 Subject: [PATCH] =?UTF-8?q?test(wxapi):=20=E9=80=82=E9=85=8D=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=A8=A1=E5=9E=8B=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EventSamples/MpReply/ImageMessageReply.xml | 9 +++++++++ .../EventSamples/MpReply/MusicMessageReply.xml | 13 +++++++++++++ .../EventSamples/MpReply/NewsMessageReply.xml | 15 +++++++++++++++ .../EventSamples/MpReply/TextMessageReply.xml | 7 +++++++ .../MpReply/TransferCustomerServiceReply.xml | 9 +++++++++ .../EventSamples/MpReply/VideoMessageReply.xml | 11 +++++++++++ .../EventSamples/MpReply/VoiceMessageReply.xml | 9 +++++++++ .../TestClients.cs | 6 +++++- 8 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/ImageMessageReply.xml create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/MusicMessageReply.xml create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/NewsMessageReply.xml create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/TextMessageReply.xml create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/TransferCustomerServiceReply.xml create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/VideoMessageReply.xml create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/VoiceMessageReply.xml diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/ImageMessageReply.xml b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/ImageMessageReply.xml new file mode 100644 index 00000000..82c5213b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/ImageMessageReply.xml @@ -0,0 +1,9 @@ + + + + 12345678 + + + + + \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/MusicMessageReply.xml b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/MusicMessageReply.xml new file mode 100644 index 00000000..89ba2306 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/MusicMessageReply.xml @@ -0,0 +1,13 @@ + + + + 12345678 + + + <![CDATA[TITLE]]> + + + + + + \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/NewsMessageReply.xml b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/NewsMessageReply.xml new file mode 100644 index 00000000..57922ba0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/NewsMessageReply.xml @@ -0,0 +1,15 @@ + + + + 12345678 + + 1 + + + <![CDATA[title1]]> + + + + + + \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/TextMessageReply.xml b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/TextMessageReply.xml new file mode 100644 index 00000000..f421f780 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/TextMessageReply.xml @@ -0,0 +1,7 @@ + + + + 12345678 + + + \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/TransferCustomerServiceReply.xml b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/TransferCustomerServiceReply.xml new file mode 100644 index 00000000..7e54afb7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/TransferCustomerServiceReply.xml @@ -0,0 +1,9 @@ + + + + 1399197672 + + + + + \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/VideoMessageReply.xml b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/VideoMessageReply.xml new file mode 100644 index 00000000..c5ece953 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/VideoMessageReply.xml @@ -0,0 +1,11 @@ + + + + 12345678 + + + \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/VoiceMessageReply.xml b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/VoiceMessageReply.xml new file mode 100644 index 00000000..7e4e087f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/EventSamples/MpReply/VoiceMessageReply.xml @@ -0,0 +1,9 @@ + + + + 12345678 + + + + + \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/TestClients.cs b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/TestClients.cs index 1861fcbd..193cb226 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/TestClients.cs +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/TestClients.cs @@ -6,7 +6,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.UnitTests { static TestClients() { - Instance = new WechatApiClient(TestConfigs.WechatAppId, TestConfigs.WechatAppSecret); + Instance = new WechatApiClient(new WechatApiClientOptions() + { + AppId = TestConfigs.WechatAppId, + AppSecret = TestConfigs.WechatAppSecret + }); } public static readonly WechatApiClient Instance;