orderTest.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace XYY.Test
  8. {
  9. [TestClass]
  10. public class orderTest
  11. {
  12. [TestMethod]
  13. public async Task Test()
  14. {
  15. XYY.Service.Standard.ChannelApi.Winit.Api winit = new Service.Standard.ChannelApi.Winit.Api();
  16. string sign = winit.GetSign("89435277FA3BA272DE795559998E-", "createOutboundOrder", "rebecca", @"
  17. {
  18. ""address1"": ""1 Stafford Crt."",
  19. ""address2"": ""aaaaaaa"",
  20. ""city"": ""Bayswater North"",
  21. ""deliveryWayID"": ""1010520"",
  22. ""eBayOrderID"": ""3298473480"",
  23. ""emailAddress"": ""abc@winit.com"",
  24. ""insuranceTypeID"": 1000000,
  25. ""phoneNum"": ""15900001111"",
  26. ""productList"": [
  27. {
  28. ""eBayBuyerID"": ""98877456rere"",
  29. ""eBayItemID"": ""3434245"",
  30. ""eBaySellerID"": ""99887rtrtr66123"",
  31. ""eBayTransactionID"": ""24377766"",
  32. ""productCode"": ""LCD-IP4-01"",
  33. ""productNum"": ""1"",
  34. ""specification"": """"
  35. }
  36. ],
  37. ""recipientName"": ""mingbao"",
  38. ""region"": ""WV"",
  39. ""repeatable"": ""Y"",
  40. ""sellerOrderNo"": ""PowerSellerABC123"",
  41. ""state"": ""US"",
  42. ""warehouseID"": 1000008,
  43. ""zipCode"": ""25085"",
  44. ""isShareOrder"": ""N"",
  45. ""fromBpartnerId"": ""111""
  46. }", "json", "SELLERERP", "md5", "2016-06-16 00:19:26", "1.0");
  47. Console.WriteLine(sign);
  48. }
  49. }
  50. }