public void CreateProfileFunctionTest()
        {
            ProfileFunctionBusiness target          = new ProfileFunctionBusiness(); // TODO: Initialize to an appropriate value
            SessionInfo             sessioninfo     = null;                          // TODO: Initialize to an appropriate value
            MA_PROFILE_FUNCTIONAL   profilefunction = null;                          // TODO: Initialize to an appropriate value
            MA_PROFILE_FUNCTIONAL   expected        = null;                          // TODO: Initialize to an appropriate value
            MA_PROFILE_FUNCTIONAL   actual;

            actual = target.CreateProfileFunction(sessioninfo, profilefunction);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
        public static object Delete(SessionInfo sessioninfo, Guid guID)
        {
            try
            {
                ProfileFunctionBusiness _profilefunctionbusiness = new ProfileFunctionBusiness();

                _profilefunctionbusiness.DeleteProfileFunction(sessioninfo, guID);

                return(new { Result = "OK" });
            }
            catch (Exception ex)
            {
                return(new { Result = "ERROR", Message = ex.Message });
            }
        }
        public void GetProfileFunctionByFilterTest()
        {
            ProfileFunctionBusiness target      = new ProfileFunctionBusiness(); // TODO: Initialize to an appropriate value
            SessionInfo             sessioninfo = null;                          // TODO: Initialize to an appropriate value
            string strprofile  = string.Empty;                                   // TODO: Initialize to an appropriate value
            string strfunction = string.Empty;                                   // TODO: Initialize to an appropriate value
            int    startIndex  = 0;                                              // TODO: Initialize to an appropriate value
            int    count       = 0;                                              // TODO: Initialize to an appropriate value
            string sorting     = string.Empty;                                   // TODO: Initialize to an appropriate value
            List <MA_PROFILE_FUNCTIONAL> expected = null;                        // TODO: Initialize to an appropriate value
            List <MA_PROFILE_FUNCTIONAL> actual;

            actual = target.GetProfileFunctionByFilter(sessioninfo, strprofile, strfunction, startIndex, count, sorting);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
 public static object Update(SessionInfo sessioninfo, MA_PROFILE_FUNCTIONAL record)
 {
     try
     {
         ProfileFunctionBusiness _profilefunctionbusiness = new ProfileFunctionBusiness();
         //record.ISREADABLE = record.ISREADABLE == null ? false : true;
         //record.ISWRITABLE = record.ISWRITABLE == null ? false : true;
         //record.ISAPPROVABLE = record.ISAPPROVABLE == null ? false : true;
         var updated = _profilefunctionbusiness.UpdateProfileFunction(sessioninfo, record);
         return(new { Result = "OK" });
     }
     catch (Exception ex)
     {
         return(new { Result = "ERROR", Message = ex.Message });
     }
 }
        public static object GetProfileFunctionByFilter(SessionInfo sessioninfo, string strprofile, string strfunction, int jtStartIndex, int jtPageSize, string jtSorting)
        {
            try
            {
                //Return result to jTable
                ProfileFunctionBusiness _profilefunctionbusiness = new ProfileFunctionBusiness();

                //Get data from database
                List <MA_PROFILE_FUNCTIONAL> PF = _profilefunctionbusiness.GetProfileFunctionByFilter(sessioninfo, strprofile, strfunction, jtSorting);

                //Return result to jTable
                return(new { Result = "OK",
                             Records = jtPageSize > 0 ? PF.Skip(jtStartIndex).Take(jtPageSize).ToList() : PF,
                             TotalRecordCount = PF.Count });
            }
            catch (BusinessWorkflowsException bex)
            {
                return(new { Result = "ERROR", Message = bex.Message });
            }
            catch (Exception ex)
            {
                return(new { Result = "ERROR", Message = ex.Message });
            }
        }
        public void ProfileFunctionBusinessConstructorTest()
        {
            ProfileFunctionBusiness target = new ProfileFunctionBusiness();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
        public static List <PermisionModel> GetPermissionByProfileID(Guid guProfileID)
        {
            ProfileFunctionBusiness _profilefunctionbusiness = new ProfileFunctionBusiness();

            return(_profilefunctionbusiness.GetPermissionByProfileID(guProfileID));
        }