コード例 #1
0
        //[TestMethod]
        void AssignRolesToUser_No_Service(string user, string rol)
        {
            String strErrorResut = String.Empty;

            AssignRolesToUserService svc = new AssignRolesToUserService();
            AssignRolesToUserReq     req = new AssignRolesToUserReq();

            req.BusinessData.Username = user;
            req.BusinessData.RolList.Add(new Fwk.Security.Common.Rol(rol));

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


            Assert.AreEqual <String>(strErrorResut, string.Empty, strErrorResut);
        }
コード例 #2
0
ファイル: RolesTest.cs プロジェクト: Pelsoft/fwk_10.3
        //[TestMethod]
         void AssignRolesToUser_No_Service(string user,string rol)
        {

            String strErrorResut = String.Empty;
            
            AssignRolesToUserService svc = new AssignRolesToUserService();
            AssignRolesToUserReq req = new AssignRolesToUserReq();

            req.BusinessData.Username = user;
            req.BusinessData.RolList.Add(new Fwk.Security.Common.Rol (rol));

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

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


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

        }