You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
using Shentun.Utilities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Shentun.Peis.PlugIns.Tests
|
|
{
|
|
public class PlugInsBaseTest
|
|
{
|
|
private readonly ITestOutputHelper _output;
|
|
public PlugInsBaseTest(ITestOutputHelper testOutputHelper)
|
|
{
|
|
_output = testOutputHelper;
|
|
|
|
}
|
|
|
|
[Fact]
|
|
public async Task CallAppAppservice()
|
|
{
|
|
string configParm;
|
|
string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
|
|
configParm = File.ReadAllText(filePath);
|
|
|
|
var plugInsBase = new PlugInsBase(configParm);
|
|
//await plugInsBase.CallAppAppservice();
|
|
|
|
|
|
}
|
|
[Fact]
|
|
public async Task Logoin()
|
|
{
|
|
string configParm;
|
|
string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
|
|
configParm = File.ReadAllText(filePath);
|
|
|
|
var plugInsBase = new PlugInsBase(configParm);
|
|
var result = await plugInsBase.LoginAsync("admin","666666");
|
|
|
|
|
|
}
|
|
}
|
|
}
|