test/UnitTest/Bootstrap.Admin/Api/SQLTest.cs
(完整代码) 706B// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the LGPL License, Version 3.0. See License.txt in the project root for license information.
// Website: https://admin.blazor.zone
using Bootstrap.DataAccess;
using Longbow.Web.Mvc;
using System.Net.Http.Json;
using Xunit;
namespace Bootstrap.Admin.Api
{
public class SQLTest : ControllerTest
{
public SQLTest(BALoginWebHost factory) : base(factory, "api/SQL") { }
[Fact]
public async void Get_Ok()
{
var resp = await Client.GetFromJsonAsync<QueryData<DBLog>>("?userName=Admin&OperateTimeStart=&OperateTimeEnd=");
Assert.NotNull(resp);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
