public void GetOPICSCustomerByNameTest() { OpicsBusiness target = new OpicsBusiness(); // TODO: Initialize to an appropriate value string name = string.Empty; // TODO: Initialize to an appropriate value List<CUSTModel> expected = null; // TODO: Initialize to an appropriate value List<CUSTModel> actual; actual = target.GetOPICSCustomerByName(name); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public static object GetOPICSCustomerByName(string name) { OpicsBusiness opicsBusiness = new OpicsBusiness(); try { List<CUSTModel> cust = opicsBusiness.GetOPICSCustomerByName(name); //Return result to jTable return new { Result = "OK", Records = cust, TotalRecordCount = cust.Count }; } catch (BusinessWorkflowsException bex) { return new { Result = "ERROR", Message = bex.Message }; } catch (Exception ex) { return new { Result = "ERROR", Message = ex.Message }; } }