Ejemplo n.º 1
0
        public void GetCounterpartyLimitByCtpyIDTest()
        {
            CounterpartyBusiness target      = new CounterpartyBusiness(); // TODO: Initialize to an appropriate value
            SessionInfo          sessioninfo = null;                       // TODO: Initialize to an appropriate value
            Guid ID = new Guid();                                          // TODO: Initialize to an appropriate value
            List <MA_CTPY_LIMIT> expected = null;                          // TODO: Initialize to an appropriate value
            List <MA_CTPY_LIMIT> actual;

            actual = target.GetCounterpartyLimitByCtpyID(sessioninfo, ID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 2
0
        public static object GetCtpyLimitByCtpyID(SessionInfo sessioninfo, Guid ID)
        {
            try
            {
                CounterpartyBusiness _counterpartyBusiness = new CounterpartyBusiness();
                //Get data from database
                List <MA_CTPY_LIMIT> limits = _counterpartyBusiness.GetCounterpartyLimitByCtpyID(sessioninfo, ID);

                //Return result to jTable
                return(new { Result = "OK", Records = limits, TotalRecordCount = limits.Count });
            }
            catch (BusinessWorkflowsException bex)
            {
                return(new { Result = "ERROR", Message = bex.Message });
            }
            catch (Exception ex)
            {
                return(new { Result = "ERROR", Message = ex.Message });
            }
        }
 public void GetCounterpartyLimitByCtpyIDTest()
 {
     CounterpartyBusiness target = new CounterpartyBusiness(); // TODO: Initialize to an appropriate value
     SessionInfo sessioninfo = null; // TODO: Initialize to an appropriate value
     Guid ID = new Guid(); // TODO: Initialize to an appropriate value
     List<MA_CTPY_LIMIT> expected = null; // TODO: Initialize to an appropriate value
     List<MA_CTPY_LIMIT> actual;
     actual = target.GetCounterpartyLimitByCtpyID(sessioninfo, ID);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Ejemplo n.º 4
0
        public static object GetCtpyLimitByCtpyID(SessionInfo sessioninfo, Guid ID)
        {
            try
            {
                CounterpartyBusiness _counterpartyBusiness = new CounterpartyBusiness();
                //Get data from database
                List<MA_CTPY_LIMIT> limits = _counterpartyBusiness.GetCounterpartyLimitByCtpyID(sessioninfo, ID);

                //Return result to jTable
                return new { Result = "OK", Records = limits, TotalRecordCount = limits.Count };
            }
            catch (BusinessWorkflowsException bex)
            {
                return new { Result = "ERROR", Message = bex.Message };
            }
            catch (Exception ex)
            {
                return new { Result = "ERROR", Message = ex.Message };
            }
        }