public void GetUserInfoByParams_NoService() { string strErrorResult = string.Empty; Fwk.Security.SVC.GetUserInfoByParamsService service = new Fwk.Security.SVC.GetUserInfoByParamsService(); GetUserInfoByParamsReq req = new GetUserInfoByParamsReq(); req.BusinessData.UserName = wTestUser.UserName; try { GetUserInfoByParamsRes res = service.Execute(req); } catch (Exception ex) { strErrorResult = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex); } Assert.AreEqual <String>(strErrorResult, string.Empty, strErrorResult); }
public void GetUserInfoByParams_NoService() { string strErrorResult = string.Empty; Fwk.Security.SVC.GetUserInfoByParamsService service = new Fwk.Security.SVC.GetUserInfoByParamsService(); GetUserInfoByParamsReq req = new GetUserInfoByParamsReq(); req.BusinessData.UserName = wTestUser.UserName; try { GetUserInfoByParamsRes res = service.Execute(req); } catch (Exception ex) { strErrorResult = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex); } Assert.AreEqual<String>(strErrorResult, string.Empty, strErrorResult); }