using FlexJobApi.Core;
|
using System.Threading.Tasks;
|
|
namespace FlexJobApi.FlexJobServer.Test
|
{
|
public class TaskUnitTest
|
{
|
private readonly ResourceHttpUtils http;
|
|
public TaskUnitTest(ResourceHttpUtils http)
|
{
|
this.http = http;
|
}
|
|
[Fact]
|
public async Task Test1()
|
{
|
var categories = await http.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>
|
{
|
|
}
|
});
|
}
|
}
|
}
|