Ejemplo n.º 1
0
        /// <summary>
        /// Obtiene todos los usuarios
        /// </summary>
        /// <returns>UserList</returns>
        internal static UserList GetAllUsers(bool?pActiveflag)
        {
            SearchAllUsersReq req = new SearchAllUsersReq();

            //req.BusinessData.Activeflag = pActiveflag;
            SearchAllUsersRes res = req.ExecuteService <SearchAllUsersReq, SearchAllUsersRes>(WrapperSecurityProvider, req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }
            return(res.BusinessData.UserList);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
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);



        }
Ejemplo n.º 4
0
        public void SearchAllUsers_NoService()
        {
            string strErrorResult = string.Empty;
            SearchAllUsersService svc = new SearchAllUsersService();
            SearchAllUsersReq req = new SearchAllUsersReq();
            
            try
            {
               SearchAllUsersRes res = svc.Execute(req);
            }
            catch (Exception ex)
            {
                strErrorResult = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }

            Assert.AreEqual<String>(strErrorResult, string.Empty, strErrorResult);
        }
Ejemplo n.º 5
0
        public void SearchAllUsers_NoService()
        {
            string strErrorResult     = string.Empty;
            SearchAllUsersService svc = new SearchAllUsersService();
            SearchAllUsersReq     req = new SearchAllUsersReq();

            try
            {
                SearchAllUsersRes res = svc.Execute(req);
            }
            catch (Exception ex)
            {
                strErrorResult = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }

            Assert.AreEqual <String>(strErrorResult, string.Empty, strErrorResult);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Obtiene todos los usuarios
        /// </summary>
        /// <returns>UserList</returns>
        internal static UserList GetAllUsers(bool? pActiveflag)
        {
            SearchAllUsersReq req = new SearchAllUsersReq();

            //req.BusinessData.Activeflag = pActiveflag;
            SearchAllUsersRes res = req.ExecuteService<SearchAllUsersReq, SearchAllUsersRes>(WrapperSecurityProvider, req);

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