Exemplo n.º 1
0
 public void TestMethod2()
 {
     using (var client = new FlashSaleCreateOrderClient())
     {
         var request =
             JsonConvert.DeserializeObject <CreateOrderRequest>(
                 "{\"BookDateTime\":\"2018-01-31T00:00:00\",\"BookPeriod\":\"15:00\",\"OrderChannel\":\"WXAPP_PT\",\"OrderDatetime\":\"2018-01-31T11:17:00\",\"OrderId\":0,\"OrderType\":\"50拼团抽奖\",\"Status\":\"0NewPingTuan\",\"SumNum\":1,\"Items\":[{\"Category\":\"PTCJ\",\"Cost\":0.0,\"MarkedPrice\":2999.0000,\"ListPrice\":0.0,\"Name\":\"vivo X20 全面屏手机 全网通 4GB+64GB 移动联通电信4G手机 星耀红 标准版\",\"Num\":1,\"OrderId\":0,\"Pid\":\"XU-PTCJ-HY|2\",\"Price\":0.01,\"ProductType\":0,\"PurchaseStatus\":0,\"UsePromotionCode\":false,\"ActivityId\":\"8448b8a4-cae7-468e-9d4d-72f4171925e7\",\"IsVerifyActivity\":false,\"NodeNo\":\"558128.594531.594544.594545\",\"IsDaiFa\":false}],\"DeviceID\":\"f13629d1-392e-23c0-7192-5d00f74d41a5\",\"Delivery\":{\"Address\":{\"Pkid\":0,\"ConsigneeName\":\"途虎测试\",\"Cellphone\":\"15895659394\",\"Telphone\":\"15895659394\",\"ProvinceId\":723,\"Province\":\"江苏省\",\"CityId\":4,\"City\":\"南京市\",\"CountyId\":725,\"County\":\"玄武区\",\"Address\":\"测试地址测试地址测试地址测试地址测试地址测试地址1234\",\"CreateDateTime\":\"0001-01-01T00:00:00\",\"LastUpdateDateTime\":\"0001-01-01T00:00:00\",\"UserCreated\":0},\"DeliveryStatus\":\"1NotStarted\",\"InstallType\":\"3NoInstall\"},\"Payment\":{\"PayMothed\":\"fXianShangZhiFu\",\"PayStatus\":\"1Waiting\",\"PaymentType\":\"5Special\"},\"Money\":{\"ShippingMoney\":0.0,\"SumDisMoney\":2998.9900,\"SumMarkedMoney\":2999.0000,\"SumMoney\":0.01},\"Customer\":{\"UserId\":\"fc338d4b-4a2f-4948-81f1-da7a46221379\",\"UserName\":\"途虎测试\",\"UserTel\":\"15895659394\"}}");
         var result = client.FlashSaleCreateOrder(request);
         Assert.IsNotNull(result);
     }
 }
Exemplo n.º 2
0
 public void TestMethod1()
 {
     using (var client = new FlashSaleCreateOrderClient())
     {
         var request =
             JsonConvert.DeserializeObject <CreateOrderRequest>(
                 "{\"BookDateTime\":\"2018-05-15T00:00:00\",\"BookPeriod\":\"15:00\",\"OrderChannel\":\"WXAPP_PT\",\"OrderDatetime\":\"2018-05-14T16:37:00\",\"OrderId\":0,\"OrderType\":\"60拼团年卡\",\"Status\":\"0NewPingTuan\",\"SumNum\":1,\"Items\":[{\"Category\":\"XNQT\",\"Cost\":0,\"MarkedPrice\":99999,\"ListPrice\":0,\"Name\":\"途虎VIP卡\",\"Num\":1,\"OrderId\":0,\"Pid\":\"AP-HSC-YC-401|1\",\"Price\":45,\"ProductType\":0,\"PurchaseStatus\":0,\"UsePromotionCode\":false,\"ActivityId\":\"84e05c5b-ec4a-4f7f-a113-fe0ecc03f524\",\"IsVerifyActivity\":false,\"NodeNo\":\"558128.880028.615882.615883\",\"IsDaiFa\":false}],\"DeviceID\":\"cfba6c15-5b26-da30-7340-b0905b525ad4\",\"Delivery\":{\"Address\":{\"Pkid\":0,\"ConsigneeName\":\"途虎测试\",\"Cellphone\":\"18801794316\",\"Telphone\":\"18801794316\",\"ProvinceId\":1,\"Province\":\"上海市\",\"CityId\":45,\"City\":\"闵行区\",\"CountyId\":45,\"County\":\"闵行区\",\"Address\":\"闵虹路166弄城开中心1号楼9楼途虎养车前台\",\"CreateDateTime\":\"0001-01-01T00:00:00\",\"LastUpdateDateTime\":\"0001-01-01T00:00:00\",\"UserCreated\":0},\"DeliveryStatus\":\"1NotStarted\",\"InstallType\":\"3NoInstall\"},\"Payment\":{\"PayMothed\":\"fXianShangZhiFu\",\"PayStatus\":\"1Waiting\",\"PaymentType\":\"5Special\",\"PlatformDiscount\":0},\"Money\":{\"ShippingMoney\":0,\"SumDisMoney\":99954,\"SumMarkedMoney\":99999,\"SumMoney\":45},\"Car\":{\"Pkid\":0,\"VehicleId\":\"VE-GM-S07BO\",\"Vehicle\":\"君威-上海通用别克\",\"Brand\":\"B - 别克\",\"PaiLiang\":\"3.0L\",\"Nian\":\"2004\",\"SalesName\":\"2002款 3.0L 自动 旗舰版\",\"LiYangId\":\"\",\"Tid\":\"102154\",\"PlateNumber\":\"\",\"CreateDateTime\":\"0001-01-01T00:00:00\",\"LastUpdateDateTime\":\"0001-01-01T00:00:00\",\"Distance\":0,\"UserCreated\":0},\"Customer\":{\"UserId\":\"21fa116e-5aaf-4dd8-9ee0-c2d93cb026c6\",\"UserName\":\"途虎测试\",\"UserTel\":\"13671714524\"}}");
         var result = client.FlashSaleCreateOrder(request);
         Assert.IsNotNull(result);
     }
 }
Exemplo n.º 3
0
        public void TestMethod3()
        {
            using (var client = new FlashSaleCreateOrderClient())
            {
                var request =
                    JsonConvert.DeserializeObject <CreateOrderRequest>(
                        "{\"BookDateTime\":\"2018-03-27T00:00:00\",\"BookPeriod\":\"15:00\",\"OrderChannel\":\"WXAPP_PT\",\"OrderDatetime\":\"2018-03-27T11:04:00\",\"OrderId\":0,\"OrderType\":\"1普通\",\"Status\":\"0NewPingTuan\",\"SumNum\":1,\"Items\":[{\"Category\":\"Camp\",\"Cost\":0.0,\"MarkedPrice\":59.0000,\"ListPrice\":0.0,\"Name\":\"德国TAWA 户外野营绑绳帆布吊床 室内宿舍单人秋千寝室吊床【彩虹】1421  \",\"Num\":1,\"OrderId\":0,\"Pid\":\"AP-TAWA-DC|1\",\"Price\":9.00,\"ProductType\":4,\"PurchaseStatus\":0,\"UsePromotionCode\":false,\"ActivityId\":\"028dd4e1-1ca5-4d92-b706-a4229d5ace67\",\"IsVerifyActivity\":false,\"NodeNo\":\"28349.28392.30833.160907.160908\",\"IsDaiFa\":true}],\"Delivery\":{\"Address\":{\"Pkid\":0,\"ConsigneeName\":\"途虎测试\",\"Cellphone\":\"15000183754\",\"Telphone\":\"15000183754\",\"ProvinceId\":1,\"Province\":\"上海市\",\"CityId\":1,\"City\":\"上海市\",\"CountyId\":35,\"County\":\"黄浦区\",\"Address\":\"途虎\",\"CreateDateTime\":\"0001-01-01T00:00:00\",\"LastUpdateDateTime\":\"0001-01-01T00:00:00\",\"UserCreated\":0},\"DeliveryStatus\":\"1NotStarted\",\"InstallType\":\"3NoInstall\"},\"Payment\":{\"PayMothed\":\"fXianShangZhiFu\",\"PayStatus\":\"1Waiting\",\"PaymentType\":\"5Special\",\"PlatformDiscount\":0.0},\"Money\":{\"ShippingMoney\":0.0,\"SumDisMoney\":50.0000,\"SumMarkedMoney\":59.0000,\"SumMoney\":9.00},\"Car\":{\"Pkid\":0,\"VehicleId\":\"VE-CROSSPOLOSJDZ\",\"Vehicle\":\"CrossPOLO-上海大众\",\"Brand\":\"D - 大众\",\"PaiLiang\":\"1.6L\",\"Nian\":\"2017\",\"SalesName\":\"\",\"LiYangId\":\"\",\"Tid\":\"\",\"PlateNumber\":\"\",\"CreateDateTime\":\"0001-01-01T00:00:00\",\"LastUpdateDateTime\":\"0001-01-01T00:00:00\",\"Distance\":0,\"UserCreated\":0},\"Customer\":{\"UserId\":\"7f73364b-0307-4245-9e95-b5489fe54eef\",\"UserName\":\"途虎测试\",\"UserTel\":\"15000183754\"}}"

                        );
                var result = client.FlashSaleCreateOrder(request);
                Assert.IsNotNull(result);
            }
        }
        public void TestMethod4()
        {
            using (var client = new FlashSaleCreateOrderClient())
            {
                var request =
                    JsonConvert.DeserializeObject <CreateOrderRequest>(
                        "{\"BookDateTime\": \"2019-01-24T10:47:00.3208707+08:00\",\"BookPeriod\": \"15:00\",\"OrderChannel\": \"1网站\",\"OrderDatetime\": \"2019-01-24T10:47:00\",\"OrderId\": 0,\"OrderType\": \"13车品服务\",\"Remark\": \"\",\"Status\": \"0New\",\"Submitor\": \"15669936783\",\"SumNum\": 7,\"Items\": [{\"Category\": \"Oil\",\"Cost\": 0.0,\"Fupid\": \"\",\"MarkedPrice\": 328.0000,\"ListPrice\": 0.0,\"Name\": \"【正品授权】壳牌/Shell 超凡喜力 全合成机油 新中超限量版 ULTRA 5W-30 SN 灰壳(4L装)\",\"Num\": 3,\"Amount\": 0.0,\"Unit\": \"个\",\"OrderId\": 0,\"Pid\": \"OL-SHELL-CLS|14\",\"Price\": 45.0000,\"ProductType\": 2,\"PurchaseStatus\": 0,\"UsePromotionCode\": false,\"IsVerifyActivity\": true,\"GiftGroup\": \"00000000-0000-0000-0000-000000000000\"},{\"Category\": \"DPZJ1\",\"Cost\": 0.0,\"Fupid\": \"\",\"MarkedPrice\": 512.0000,\"ListPrice\": 0.0,\"Name\": \"固特威 底盘装甲涂料 车底防护 橡胶型1004水性(升级款)【黑色】4瓶装\",\"Num\": 3,\"Amount\": 0.0,\"Unit\": \"个\",\"OrderId\": 0,\"Pid\": \"LF-CP-XJX|2\",\"Price\": 500.0000,\"ProductType\": 4,\"PurchaseStatus\": 0,\"UsePromotionCode\": false,\"ActivityId\": \"3b91db3a-a9ea-4c68-9ba1-aa61c68a8df6\",\"IsVerifyActivity\": false,\"ExtInfo\": {\"InstallShopId\": 0}},{\"Category\": \"BOG\",\"Cost\": 0.0,\"MarkedPrice\": 29.0000,\"ListPrice\": 0.0,\"Name\": \"途虎定制 芳香型浓缩雨刷精汽车玻璃清洗剂汽车玻璃水雨刮精 60ML 【1瓶装】\",\"Num\": 1,\"Amount\": 0.0,\"Unit\": \"个\",\"OrderId\": 0,\"Pid\": \"AP-BOTNY-B1999-1|\",\"Price\": 0.0,\"ProductType\": 68,\"PurchaseStatus\": 0,\"UsePromotionCode\": false,\"IsVerifyActivity\": true,\"NodeNo\": \"28349.28381.30776.33945\",\"IsDaiFa\": false,\"GiftGroup\": \"00000000-0000-0000-0000-000000000000\",\"GiftRuleId\": 4798,\"IsMustReturn\": false},{\"Category\": \"BOG\",\"Cost\": 0.0,\"MarkedPrice\": 39.0000,\"ListPrice\": 0.0,\"Name\": \"途虎定制 芳香型浓缩雨刷精汽车玻璃清洗剂汽车玻璃水雨刮精60ML【8瓶装】\",\"Num\": 1,\"Amount\": 0.0,\"Unit\": \"个\",\"OrderId\": 0,\"Pid\": \"AP-BOTNY-B1999-8TH|1\",\"Price\": 0.0,\"ProductType\": 68,\"PurchaseStatus\": 0,\"UsePromotionCode\": false,\"IsVerifyActivity\": true,\"NodeNo\": \"28349.28381.30776.38204.38205\",\"IsDaiFa\": false,\"GiftGroup\": \"00000000-0000-0000-0000-000000000000\",\"GiftRuleId\": 4798,\"IsMustReturn\": false}],\"Delivery\": {\"Address\": {\"Pkid\": 0,\"ConsigneeName\": \"15669936783\",\"Cellphone\": \"15669936783\",\"ProvinceId\": 1,\"Province\": \"上海市\",\"CityId\": 35,\"City\": \"黄浦区\",\"CountyId\": 0,\"Address\": \"bkfkhkjhffd\",\"CreateDateTime\": \"0001-01-01T00:00:00\",\"LastUpdateDateTime\": \"0001-01-01T00:00:00\",\"UserCreated\": 0},\"DeliveryStatus\": \"1NotStarted\",\"InstallType\": \"3NoInstall\"},\"Invoice\": {\"InvoiceStatus\": \"1NoInvoice\",\"InvoiceType\": \"1NoInvoice\"},\"Payment\": {\"PayMothed\": \"fXianShangZhiFu\",\"PayStatus\": \"1Waiting\",\"PaymentType\": \"5Special\",\"SumPaid\": 0.0,\"PlatformDiscount\": 0.0},\"Money\": {\"ShippingMoney\": 0.0,\"SumDisMoney\": 363.0000,\"SumMarkedMoney\": 908.0000,\"SumMoney\": 545.0000},\"Car\": {\"Pkid\": 0,\"PlateNumber\": \"\",\"CreateDateTime\": \"0001-01-01T00:00:00\",\"LastUpdateDateTime\": \"0001-01-01T00:00:00\",\"UserCreated\": 0},\"Customer\": {\"UserId\": \"75ffdbb3-6e03-4c1a-a174-da0b5bd9ad7e\",\"UserName\": \"15669936783\",\"UserTel\": \"15669936783\"}}"

                        );
                var result = client.FlashSaleCreateOrder(request);
                Assert.IsNotNull(result);
            }
        }
        public void TestMethod3()
        {
            using (var client = new FlashSaleCreateOrderClient())
            {
                var request =
                    JsonConvert.DeserializeObject <CreateOrderRequest>(
                        "{\"BookDateTime\": \"2019-01-24T00:00:00\",\"BookPeriod\": \"15:00\",\"OrderChannel\": \"c微信\",\"OrderDatetime\": \"2019-01-23T15:03:57.6674618+08:00\",\"OrderId\": 0,\"OrderType\": \"1普通\",\"Status\": \"0New\",\"SumNum\": 1,\"Items\": [{\"Category\": \"BOG\",\"Cost\": 0.0,\"MarkedPrice\": 149.0000,\"ListPrice\": 0.0,\"Name\": \"车仆/chief -25℃ 防冻玻璃水 车用冬季雨刷精 雨刮水  【8瓶*2L】\",\"Num\": 1,\"Amount\": 0.0,\"Unit\": \"个\",\"OrderId\": 0,\"Pid\": \"ap-CHIEF-yh|4\",\"Price\": 100.0000,\"ProductType\": 4,\"PurchaseStatus\": 0,\"UsePromotionCode\": false,\"ActivityId\": \"538d76dc-8882-4db3-8d92-61103d038745\",\"IsVerifyActivity\": false}],\"Delivery\": {\"Address\": {\"Pkid\": 0,\"ConsigneeName\": \"15669936783\",\"Cellphone\": \"15669936783\",\"ProvinceId\": 1,\"Province\": \"上海市\",\"CityId\": 35,\"City\": \"黄浦区\",\"CountyId\": 35,\"County\": \"黄浦区\",\"Address\": \"bkfkhkjhffd\",\"CreateDateTime\": \"0001-01-01T00:00:00\",\"LastUpdateDateTime\": \"0001-01-01T00:00:00\",\"UserCreated\": 0},\"DeliveryStatus\": \"1NotStarted\",\"InstallType\": \"3NoInstall\"},\"Payment\": {\"PayMothed\": \"fXianShangZhiFu\",\"PayStatus\": \"1Waiting\",\"PaymentType\": \"5Special\",\"PlatformDiscount\": 0.0},\"Money\": {\"SumDisMoney\": 49.0000,\"SumMarkedMoney\": 149.0000,\"SumMoney\": 100.0000},\"Car\": {\"Pkid\": 0,\"VehicleId\": \"VE-AUDI05AA\",\"Vehicle\": \"A6-奥迪进口\",\"Brand\": \"A - 奥迪\",\"PaiLiang\": \"\",\"Nian\": \"\",\"SalesName\": \"\",\"CreateDateTime\": \"0001-01-01T00:00:00\",\"LastUpdateDateTime\": \"0001-01-01T00:00:00\",\"UserCreated\": 0},\"Customer\": {\"UserId\": \"75ffdbb3-6e03-4c1a-a174-da0b5bd9ad7e\",\"UserName\": \"15669936783\",\"UserTel\": \"15669936783\"}}"

                        );
                var result = client.FlashSaleCreateOrder(request);
                Assert.IsNotNull(result);
            }
        }