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.

48 lines
1.2 KiB

  1. using Shentun.Peis.PlugIns.ImportLisResults;
  2. using Shentun.Peis.PlugIns.SyncAsbitemPrice;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Xunit.Abstractions;
  9. namespace Shentun.Peis.PlugIns.Tests
  10. {
  11. public class SyncAsbitemPricePlugInsTest
  12. {
  13. private readonly ITestOutputHelper _output;
  14. public SyncAsbitemPricePlugInsTest(ITestOutputHelper testOutputHelper)
  15. {
  16. _output = testOutputHelper;
  17. }
  18. [Fact]
  19. public async Task DoWorkAsync()
  20. {
  21. var input = new SyncAsbitemPricePlugInsDbBase(new Guid("8742ccb6-ab93-4e4d-aad9-873b69fafd8c"));
  22. await input.DoWork();
  23. }
  24. [Fact]
  25. public async Task GetInterfaceAsbitems()
  26. {
  27. var input = new SyncAsbitemPricePlugInsDbBase(new Guid("8742ccb6-ab93-4e4d-aad9-873b69fafd8c"));
  28. var list = await input.GetInterfaceAsbitems();
  29. foreach (var item in list)
  30. {
  31. _output.WriteLine(item.AsbitemId + "," + item.AsbitemName + "," + item.Price.ToString());
  32. }
  33. }
  34. }
  35. }