示例#1
0
        void DeleteRoles_No_Service(string name)
        {
            String strErrorResut = String.Empty;

            DeleteRoleService svc = new DeleteRoleService();
            DeleteRoleReq     req = new DeleteRoleReq();

            req.BusinessData.RolName = name;

            try
            {
                DeleteRoleRes res = svc.Execute(req);
            }
            catch (Exception ex)
            {
                if (typeof(TechnicalException) == ex.GetType())
                {
                    Assert.AreEqual <String>("4006", ((TechnicalException)ex).ErrorId, "No se esta validando Rol no vasio");
                }
                else
                {
                    strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
                }
            }


            Assert.AreEqual <String>(strErrorResut, string.Empty, strErrorResut);
        }
示例#2
0
         void DeleteRoles_No_Service(string name)
        {
            String strErrorResut = String.Empty;

            DeleteRoleService svc = new DeleteRoleService();
            DeleteRoleReq req = new DeleteRoleReq();

            req.BusinessData.RolName = name;

            try
            {
                DeleteRoleRes res = svc.Execute(req);

            }
            catch (Exception ex)
            {
                if (typeof(TechnicalException) == ex.GetType())
                {
                    Assert.AreEqual<String>("4006", ((TechnicalException)ex).ErrorId, "No se esta validando Rol no vasio");
                }
                else
                {
                    strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
                }
            }


            Assert.AreEqual<String>(strErrorResut, string.Empty, strErrorResut);

        }