sunpengfei
7 天以前 dcf43da6ca36a4476139305174a6bd6dd48630d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using 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()
        {
            Console.WriteLine();
            var categories = await resourceHttpUtils.SendHttpAsync<
                GetDictionaryCategorySelectQuery,
                FriendlyResult<SelectOption<Guid, GetDictionaryCategorySelectQueryOption>>>(
                new GetDictionaryCategorySelectQuery());
            Console.WriteLine();
            //Console.WriteLine();
            //var result = await resourceHttpUtils.SendHttpAsync<SaveTaskInfoCommand, Guid>(new SaveTaskInfoCommand
            //{
            //    Name = "测试任务",
            //    BillingMethod = EnumBillingMethod.Month,
            //    ServiceFee = 100,
            //    SettlementCycle = EnumSettlementCycle.Month,
            //    Benefits = new List<string>
            //    {
 
            //    }
            //});
        }
    }
}