From e80bb467eef7ed92c5fc83360785d6584762052c Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期五, 15 八月 2025 10:58:01 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs | 32 +++++++++++++++++++++----------- 1 files changed, 21 insertions(+), 11 deletions(-) diff --git a/FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs b/FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs index 3a93b69..bd93c3f 100644 --- a/FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs +++ b/FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs @@ -1,29 +1,39 @@ 锘縰sing FlexJobApi.Core; +using Microsoft.Extensions.DependencyInjection; using System.Threading.Tasks; namespace FlexJobApi.FlexJobServer.Test { public class TaskUnitTest { + private readonly ResourceHttpUtils resourceHttpUtils; + + public TaskUnitTest(ResourceHttpUtils resourceHttpUtils) + { + this.resourceHttpUtils = resourceHttpUtils; + } + [Fact] public async Task Test1() { - var categories = await ResourceUtils.SendHttpAsync< + Console.WriteLine(); + var categories = await resourceHttpUtils.SendHttpAsync< GetDictionaryCategorySelectQuery, FriendlyResult<SelectOption<Guid, GetDictionaryCategorySelectQueryOption>>>( new GetDictionaryCategorySelectQuery()); Console.WriteLine(); - var result = await ResourceUtils.SendHttpAsync<SaveTaskInfoCommand, Guid>(new SaveTaskInfoCommand - { - Name = "娴嬭瘯浠诲姟", - BillingMethod = EnumBillingMethod.Month, - ServiceFee = 100, - SettlementCycle = EnumSettlementCycle.Month, - Benefits = new List<string> - { + //Console.WriteLine(); + //var result = await resourceHttpUtils.SendHttpAsync<SaveTaskInfoCommand, Guid>(new SaveTaskInfoCommand + //{ + // Name = "娴嬭瘯浠诲姟", + // BillingMethod = EnumBillingMethod.Month, + // ServiceFee = 100, + // SettlementCycle = EnumSettlementCycle.Month, + // Benefits = new List<string> + // { - } - }); + // } + //}); } } } -- Gitblit v1.9.1