public void CreateFunctionTest()
        {
            FunctionBusiness target      = new FunctionBusiness(); // TODO: Initialize to an appropriate value
            SessionInfo      sessioninfo = null;                   // TODO: Initialize to an appropriate value
            MA_FUNCTIONAL    function    = null;                   // TODO: Initialize to an appropriate value
            MA_FUNCTIONAL    expected    = null;                   // TODO: Initialize to an appropriate value
            MA_FUNCTIONAL    actual;

            actual = target.CreateFunction(sessioninfo, function);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #2
0
 public static object CreateFunction(SessionInfo sessioninfo, MA_FUNCTIONAL record)
 {
     try
     {
         FunctionBusiness _functionbusiness = new FunctionBusiness();
         record.ID       = Guid.NewGuid();
         record.ISACTIVE = record.ISACTIVE == null || !record.ISACTIVE ? false : true;
         record.LABEL    = record.LABEL;
         record.USERCODE = record.USERCODE;
         var added = _functionbusiness.CreateFunction(sessioninfo, record);
         return(new { Result = "OK", Record = added });
     }
     catch (Exception ex)
     {
         return(new { Result = "ERROR", Message = ex.Message });
     }
 }