示例#1
0
        internal static User GetUserInfoByName(string pName)
        {
            GetUserInfoByParamsReq req = new GetUserInfoByParamsReq();

            req.BusinessData.UserName = pName;

            GetUserInfoByParamsRes res = _ClientServiceBase.ExecuteService <GetUserInfoByParamsReq, GetUserInfoByParamsRes>(WrapperSecurityProvider, req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }

            return(res.BusinessData.UserInfo);
        }
示例#2
0
        public void SearchAllUsersService_WithProvider()
        {
            string strErrorResult = string.Empty;

            SearchAllUsersReq req = new SearchAllUsersReq();


            SearchAllUsersRes res = ClientServiceBase.ExecuteService <SearchAllUsersReq, SearchAllUsersRes>("XML_test", req);

            if (res.Error != null)
            {
                strErrorResult = Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error).Message;
            }
            Assert.AreEqual <Fwk.Exceptions.ServiceError>(res.Error, null, strErrorResult);
        }