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);
        }
        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);
        }
        public void SetOnlinePaymentRequest()
        {
            YunClient.Format = "json";
            var req =
                YunClient.Instance.Execute(new SetOnlinePaymentRequest
            {
                PayMethod = "aa"
            }, YunClient.GetAdminToken());

            Assert.IsTrue(req != null);
        }
        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);
        }
        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);
        }
        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);
        }
        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);
        }