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

  1. using Shentun.Utilities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using Xunit.Abstractions;
  8. namespace Shentun.Peis.PlugIns.Tests
  9. {
  10. public class PlugInsBaseTest
  11. {
  12. private readonly ITestOutputHelper _output;
  13. public PlugInsBaseTest(ITestOutputHelper testOutputHelper)
  14. {
  15. _output = testOutputHelper;
  16. }
  17. [Fact]
  18. public async Task CallAppAppservice()
  19. {
  20. string configParm;
  21. string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
  22. configParm = File.ReadAllText(filePath);
  23. var plugInsBase = new PlugInsBase(configParm);
  24. //await plugInsBase.CallAppAppservice();
  25. }
  26. [Fact]
  27. public async Task Logoin()
  28. {
  29. string configParm;
  30. string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
  31. configParm = File.ReadAllText(filePath);
  32. var plugInsBase = new PlugInsBase(configParm);
  33. var result = await plugInsBase.LoginAsync("admin","666666");
  34. }
  35. }
  36. }