Beispiel #1
0
        public void PagingQueryXH_HistoryEntrustInfoByFilterAndUserIDPwdTest()
        {
            TraderFindService target = new TraderFindService();                           // TODO: 初始化为适当的值
            string            userID = "4";                                               // TODO: 初始化为适当的值
            string            pwd    = "XIVqM2FELUw=";                                    // TODO: 初始化为适当的值
            SpotEntrustConditionFindEntity filter = new SpotEntrustConditionFindEntity(); // TODO: 初始化为适当的值

            filter.BelongToMarket     = 32;
            filter.BuySellDirection   = 1;
            filter.CurrencyType       = 2;
            filter.StartTime          = DateTime.Now.AddDays(-30);
            filter.EndTime            = DateTime.Now;
            filter.CanBeWithdrawnLogo = 1;
            PagingInfo pageInfo = new PagingInfo(); // TODO: 初始化为适当的值

            pageInfo.CurrentPage = 1;
            pageInfo.IsCount     = true;
            pageInfo.PageLength  = 12;
            pageInfo.Sort        = 0;
            int    total            = 0;                       // TODO: 初始化为适当的值
            int    totalExpected    = 0;                       // TODO: 初始化为适当的值
            string errorMsg         = string.Empty;            // TODO: 初始化为适当的值
            string errorMsgExpected = string.Empty;            // TODO: 初始化为适当的值
            List <XH_HistoryEntrustTableInfo> expected = null; // TODO: 初始化为适当的值
            List <XH_HistoryEntrustTableInfo> actual;

            //actual = target.PagingQueryXH_HistoryEntrustInfoByFilterAndUserIDPwd(userID, pwd, filter, pageInfo, out total, out errorMsg);
            //Assert.AreEqual(totalExpected, total);
            //Assert.AreEqual(errorMsgExpected, errorMsg);
            //Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Beispiel #2
0
        /// <summary>
        /// 管理员查询交易员现货当日委托情况
        /// </summary>
        /// <param name="adminId">管理员ID</param>
        /// <param name="adminPassword">管理员密码</param>
        /// <param name="traderId">交易员ID</param>
        /// <param name="findCondition"></param>
        /// <param name="start"></param>
        /// <param name="pageLength"></param>
        /// <param name="count"></param>
        /// <param name="strErrorMessage">输出信息</param>
        /// <returns></returns>
        public List <XH_TodayEntrustTableInfo> AdminFindTraderSpotTodayEntrust(string adminId, string adminPassword, string traderId,
                                                                               SpotEntrustConditionFindEntity findCondition,
                                                                               int start, int pageLength, out int count,
                                                                               ref string strErrorMessage)
        {
            List <XH_TodayEntrustTableInfo> result = null;

            strErrorMessage = string.Empty;
            count           = 0;
            AdministratorFindTraderBLL aa    = new AdministratorFindTraderBLL();
            AdministratorFindEntity    admin = new AdministratorFindEntity();

            admin.AdministratorID       = adminId;
            admin.AdministratorPassword = adminPassword;
            admin.TraderID = traderId;
            result         = aa.AdminFindTraderSpotTodayEntrust(admin, findCondition,
                                                                start, pageLength, out count,
                                                                ref strErrorMessage);
            return(result);
        }