/// <summary>期货资金情况查询 /// 期货资金情况查询 包含盈亏相关信息在内 /// </summary> /// <param name="userId"></param> /// <param name="accountType">账号类型(注:这是账户类型不是类别,这里是有九种类型,而类别是五种)</param> /// <param name="currencyType"></param> /// <param name="userPassword"></param> /// <param name="strErrorMessage"></param> /// <returns></returns> public FuturesCapitalEntity PagingQueryFuturesCapital(string userId, int accountType, Types.CurrencyType currencyType, string userPassword, ref string strErrorMessage) { #region old code //AccountPair _AccountPair = CommonDataAgent.GeyAccountPair(userId, accountType, 0, ref userPassword); //strErrorMessage = userPassword; //if (_AccountPair == null) return null; //FuturesCapitalEntity result = null; //var aa = new CapitalAndHoldFindBLL(); //result = aa.FuturesCapitalFind(_AccountPair.CapitalAccount.UserAccountDistributeLogo, currencyType, userPassword, ref strErrorMessage); //return result; #endregion AccountManager am = AccountManager.Instance; UA_UserAccountAllocationTableInfo userAccountInfo = am.GetAccountByUserIDAndAccountType(userId, accountType); UA_UserBasicInformationTableInfo userInfo = am.GetBasicUserByUserId(userId); if (userAccountInfo == null || userInfo == null) { strErrorMessage = "交易员对应类型的帐号不存在"; return(null); } if (userInfo.Password != userPassword) { strErrorMessage = "交易员密码错误"; return(null); } FuturesCapitalEntity result = null; var aa = new CapitalAndHoldFindBLL(); result = aa.FuturesCapitalFind(userAccountInfo.UserAccountDistributeLogo, currencyType, userPassword, ref strErrorMessage); return(result); }
public void FuturesCapitalFind2Test() { TraderFindService target = new TraderFindService(); // TODO: 初始化为适当的值 string userId = string.Empty; // TODO: 初始化为适当的值 int AccountType = 0; // TODO: 初始化为适当的值 Types.CurrencyType currencyType = new Types.CurrencyType(); // TODO: 初始化为适当的值 string userPassword = string.Empty; // TODO: 初始化为适当的值 string strErrorMessage = string.Empty; // TODO: 初始化为适当的值 string strErrorMessageExpected = string.Empty; // TODO: 初始化为适当的值 FuturesCapitalEntity expected = null; // TODO: 初始化为适当的值 FuturesCapitalEntity actual; //actual = target.FuturesCapitalFind2(userId, AccountType, currencyType, userPassword, ref strErrorMessage); Assert.AreEqual(strErrorMessageExpected, strErrorMessage); //Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }