예제 #1
0
        public static object GetOPICSInstrumentByLabel(string label)
        {
            OpicsBusiness opicsBusiness = new OpicsBusiness();
            try
            {
                List<SECMModel> secm = opicsBusiness.GetOPICSInstrumentByLabel(label);

                //Return result to jTable
                return new { Result = "OK", Records = secm, TotalRecordCount = secm.Count };
            }
            catch (BusinessWorkflowsException bex)
            {
                return new { Result = "ERROR", Message = bex.Message };
            }
            catch (Exception ex)
            {
                return new { Result = "ERROR", Message = ex.Message };
            }
        }
예제 #2
0
 public void GetOPICSInstrumentByLabelTest()
 {
     OpicsBusiness target = new OpicsBusiness(); // TODO: Initialize to an appropriate value
     string label = string.Empty; // TODO: Initialize to an appropriate value
     List<SECMModel> expected = null; // TODO: Initialize to an appropriate value
     List<SECMModel> actual;
     actual = target.GetOPICSInstrumentByLabel(label);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }