public void ClearCityRequest()
        {
            var req =
                YunClient.Instance.Execute(new ClearCityRequest(), YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
        public void GerPermissionUserRequest()
        {
            var req = YunClient.Instance.Execute(new GerPermissionUserRequest {
                Id = 172586
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req.User != null);
        }
예제 #3
0
        public void AddIntegralTypeRequest()
        {
            var req =
                YunClient.Instance.Execute(new AddIntegralTypeRequest {
                Name = "商城抵扣", TypeFlag = "Trade"
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req.Result > 0);
        }
예제 #4
0
        public void SetSignInSettingRequest()
        {
            var req = YunClient.Instance.Execute(new SetSignInSettingRequest {
                Enabled = true, Rule = "1,1,1,1,1,2,3"
            },
                                                 YunClient.GetAdminToken());

            Assert.IsTrue(req.Result > 0);
        }
        public void ExecuteTradeStatisticsRequest()
        {
            YunClient.Format = "json";
            var req = YunClient.Instance.Execute(new ExecuteTradeStatisticsRequest {
                Day = 30
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req.Result);
        }
예제 #6
0
        public void BatchUpdateShopCategoryRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new BatchUpdateShopCategoryRequest
            {
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #7
0
        public void BatchUpdateCustomerSortRequest()
        {
            YunClient.Format = "xml";
            var req =
                YunClient.Instance.Execute(new BatchUpdateCustomerSortRequest
            {
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
        public void UserSignInRequest()
        {
            YunClient.Format = "xml";
            var req =
                YunClient.Instance.Execute(new UserSignInRequest
            {
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
        public void ResetFunctionsRequest()
        {
            var req =
                YunClient.Instance.Execute(new ResetFunctionsRequest {
                CompanyId = 0, TypeId = 0
            },
                                           YunClient.GetAdminToken()).Result;

            Assert.IsTrue(req);
        }
예제 #10
0
        public void ExecutePrepaidCardBalanceStatisticsRequest()
        {
            YunClient.Format = "xml";
            var req =
                YunClient.Instance.Execute(new ExecutePrepaidCardBalanceStatisticsRequest
            {
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #11
0
        public void AddShopAlumbRequest()
        {
            YunClient.Format = "xml";
            var req =
                YunClient.Instance.Execute(new AddShopAlumbRequest
            {
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
        public void DeleteDeliveryTemplateRequest()
        {
            YunClient.Format = "xml";
            var req =
                YunClient.Instance.Execute(new DeleteDeliveryTemplateRequest
                {
                  Id = 1
                }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #13
0
        public void DeleteFavoritesItemRequest()
        {
            YunClient.Format = "json";

            var req = YunClient.Instance.Execute(new DeleteFavoritesItemRequest()
            {
                FavoriteIds = "37,38"
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #14
0
        public void AddFavoritesItemRequest()
        {
            YunClient.Format = "json";

            var req = YunClient.Instance.Execute(new AddFavoritesItemRequest()
            {
                ItemIds = "17739,17625,17614,16668,16666",
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #15
0
        public void RestoreItemRequest()
        {
            YunClient.Format = "xml";

            var req = YunClient.Instance.Execute(new RestoreItemRequest()
            {
                ItemId = "1"
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #16
0
        public void OffsheIfItemsRequest()
        {
            YunClient.Format = "xml";

            var req = YunClient.Instance.Execute(new OffsheIfItemsRequest()
            {
                ItemIds = "001"
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #17
0
        public void GetShopItemCountRequest()
        {
            YunClient.Format = "xml";

            var req = YunClient.Instance.Execute(new GetShopItemCountRequest()
            {
                Id = 1
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #18
0
        public void DeleteShopItemCategoryRequest()
        {
            YunClient.Format = "xml";

            var req = YunClient.Instance.Execute(new DeleteShopItemCategoryRequest()
            {
                Id = 9
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #19
0
        public void DeleteItemSpecValueRequest()
        {
            YunClient.Format = "json";

            var req = YunClient.Instance.Execute(new DeleteItemSpecValueRequest()
            {
                SpecValueId = 9
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #20
0
        public void DeleteShopCustomerServiceRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new DeleteShopCustomerServiceRequest
            {
                Id = 3,
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #21
0
        public void SetOnlinePaymentRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new SetOnlinePaymentRequest
            {
                PayMethod = "aa"
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #22
0
        public void CompleteRefundRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new CompleteRefundRequest
            {
                RefundId = 1,
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #23
0
        public void AddCompanyRequest()
        {
            YunClient.Format = "xml";
            var req =
                YunClient.Instance.Execute(new AddCompanyRequest
            {
                Name = "北京多鼠网络科技有限公司",
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #24
0
        public void ExistCompanyRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new ExistCompanyRequest
            {
                Content = "6",
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #25
0
        public void DeletePrepaidCardTypeRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new DeletePrepaidCardTypeRequest
            {
                PrepaidCardTypeId = 1,
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #26
0
        public void AddItemCatsRequest()
        {
            YunClient.Format = "xml";

            var req = YunClient.Instance.Execute(new AddItemCatsRequest()
            {
                Name = "goodone",
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #27
0
        public void ExecuteShopPrepaidCardStatisticsRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new ExecuteShopPrepaidCardStatisticsRequest
            {
                Day = 10,
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #28
0
        public void DeleteItemPropValueRequest()
        {
            YunClient.Format = "xml";

            var req = YunClient.Instance.Execute(new DeleteItemPropValueRequest()
            {
                PropValueId = 1
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #29
0
        public void UnBindPrepaidCardRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new UnBindPrepaidCardRequest
            {
                CardNumber = "272306",
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
예제 #30
0
        public void DeleteItemQuestionRequest()
        {
            YunClient.Format = "xml";

            var req = YunClient.Instance.Execute(new DeleteItemQuestionRequest()
            {
                Ids = "4"
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }