using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XYY.Test
{
    [TestClass]
    public class orderTest
    {
        [TestMethod]
        public async Task Test()
        {
            XYY.Service.Standard.ChannelApi.Winit.Api winit = new Service.Standard.ChannelApi.Winit.Api();
            string sign = winit.GetSign("89435277FA3BA272DE795559998E-", "createOutboundOrder", "rebecca", @"
{
    ""address1"": ""1 Stafford Crt."",
    ""address2"": ""aaaaaaa"",
    ""city"": ""Bayswater North"",
    ""deliveryWayID"": ""1010520"",
    ""eBayOrderID"": ""3298473480"",
    ""emailAddress"": ""abc@winit.com"",
    ""insuranceTypeID"": 1000000,
    ""phoneNum"": ""15900001111"",
    ""productList"": [
        {
                ""eBayBuyerID"": ""98877456rere"",
            ""eBayItemID"": ""3434245"",
            ""eBaySellerID"": ""99887rtrtr66123"",
            ""eBayTransactionID"": ""24377766"",
            ""productCode"": ""LCD-IP4-01"",
            ""productNum"": ""1"",
            ""specification"": """"
        }
    ],
    ""recipientName"": ""mingbao"",
    ""region"": ""WV"",
    ""repeatable"": ""Y"",
    ""sellerOrderNo"": ""PowerSellerABC123"",
    ""state"": ""US"",
    ""warehouseID"": 1000008,
    ""zipCode"": ""25085"",
    ""isShareOrder"": ""N"",
    ""fromBpartnerId"": ""111""
}", "json", "SELLERERP", "md5", "2016-06-16 00:19:26", "1.0");
            Console.WriteLine(sign);
        }
    }
}
