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 }; } }
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."); }