style(tenpayv3): clean code

This commit is contained in:
Fu Diwei
2022-01-21 14:30:17 +08:00
parent b442a3d618
commit 215aea8fb8
529 changed files with 507 additions and 1789 deletions

View File

@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
@@ -17,9 +14,9 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
{
var certManager = new Settings.InMemoryCertificateManager();
certManager.AddEntry(new Settings.CertificateEntry(
serialNumber: RSA_CERTSN,
certificate: RSA_CERTIFICATE,
effectiveTime: DateTimeOffset.MinValue,
serialNumber: RSA_CERTSN,
certificate: RSA_CERTIFICATE,
effectiveTime: DateTimeOffset.MinValue,
expireTime: DateTimeOffset.MaxValue
));
return new WechatTenpayClient(new WechatTenpayClientOptions()
@@ -49,7 +46,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
var mock = new Models.CreateProfitSharingOrderRequest()
{
ReceiverList = new List<Models.CreateProfitSharingOrderRequest.Types.Receiver>()
{
{
new Models.CreateProfitSharingOrderRequest.Types.Receiver()
{
Account = MockText,