Beispiel #1
0
        //[TestMethod]
        void CreateRole_No_Service(string name)
        {
            String strErrorResut = String.Empty;

            CreateRoleService svc = new CreateRoleService();
            CreateRoleReq     req = new CreateRoleReq();

            req.BusinessData.Rol.RolName = rolName;
            req.SecurityProviderName     = SecurityProviderName;

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


            Assert.AreEqual <String>(strErrorResut, string.Empty, strErrorResut);
        }
Beispiel #2
0
        //[TestMethod]
         void CreateRole_No_Service(string name)
        {
            String strErrorResut = String.Empty;

            CreateRoleService svc = new CreateRoleService();
            CreateRoleReq req = new CreateRoleReq();
            
            req.BusinessData.Rol.RolName = rolName;
            req.SecurityProviderName = SecurityProviderName;

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

            }
            catch (Exception ex)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }


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

        }