Exemplo n.º 1
0
        public void PagingQueryQH_HistoryEntrustInfoByFilterAndUserIDPwdTest()
        {
            TraderFindService target = new TraderFindService();                                 // TODO: 初始化为适当的值
            string            userID = "4";                                                     // TODO: 初始化为适当的值
            string            pwd    = "XIVqM2FELUw=";                                          // TODO: 初始化为适当的值
            FuturesEntrustConditionFindEntity filter = new FuturesEntrustConditionFindEntity(); // TODO: 初始化为适当的值

            filter.BelongToMarket     = 32;
            filter.BuySellDirection   = 1;
            filter.CurrencyTypeId     = 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 <QH_HistoryEntrustTableInfo> expected = null; // TODO: 初始化为适当的值
            List <QH_HistoryEntrustTableInfo> actual;

            //actual = target.PagingQueryQH_HistoryEntrustInfoByFilterAndUserIDPwd(userID, pwd, filter, pageInfo, out total, out errorMsg);
            //Assert.AreEqual(totalExpected, total);
            //Assert.AreEqual(errorMsgExpected, errorMsg);
            //Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Exemplo n.º 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 <QH_TodayEntrustTableInfo> AdminFindTraderFuturesTodayEntrust(string adminId, string adminPassword, string traderId,
                                                                                  FuturesEntrustConditionFindEntity findCondition,
                                                                                  int start, int pageLength, out int count,
                                                                                  ref string strErrorMessage)
        {
            List <QH_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.AdminFindTraderFuturesTodayEntrust(admin, findCondition, start, pageLength, out count,
                                                                   ref strErrorMessage);
            return(result);
        }