From 185eca1406926d46fa9f50d07a0c0ecc65ab6b96 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期一, 01 九月 2025 11:12:17 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs b/FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs index 4d96e1e..bd93c3f 100644 --- a/FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs +++ b/FlexJobApi.FlexJobServer.Test/Tasks/TaskUnitTest.cs @@ -1,36 +1,39 @@ 锘縰sing FlexJobApi.Core; +using Microsoft.Extensions.DependencyInjection; using System.Threading.Tasks; namespace FlexJobApi.FlexJobServer.Test { public class TaskUnitTest { - private readonly ResourceHttpUtils http; + private readonly ResourceHttpUtils resourceHttpUtils; - public TaskUnitTest(ResourceHttpUtils http) + public TaskUnitTest(ResourceHttpUtils resourceHttpUtils) { - this.http = http; + this.resourceHttpUtils = resourceHttpUtils; } [Fact] public async Task Test1() { - var categories = await http.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