public void GetProfileOptionsTest() { ProfileBusiness target = new ProfileBusiness(); // TODO: Initialize to an appropriate value List <MA_USER_PROFILE> expected = null; // TODO: Initialize to an appropriate value List <MA_USER_PROFILE> actual; actual = target.GetProfileOptions(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public static object GetProfileOptions(SessionInfo sessioninfo) { try { ProfileBusiness _profileBusiness = new ProfileBusiness(); //Get data from database var profiles = _profileBusiness.GetProfileOptions().Select(c => new { DisplayText = c.LABEL, Value = c.ID }); //Return result to jTable return(new { Result = "OK", Options = profiles }); } catch (Exception ex) { return(new { Result = "ERROR", Message = ex.Message }); } }