public void CreateUserProfileTest() { ProfileBusiness target = new ProfileBusiness(); // TODO: Initialize to an appropriate value SessionInfo sessioninfo = null; // TODO: Initialize to an appropriate value MA_USER_PROFILE userprofile = null; // TODO: Initialize to an appropriate value MA_USER_PROFILE expected = null; // TODO: Initialize to an appropriate value MA_USER_PROFILE actual; actual = target.CreateUserProfile(sessioninfo, userprofile); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void GetProfileByFilterTest() { ProfileBusiness target = new ProfileBusiness(); // TODO: Initialize to an appropriate value SessionInfo sessioninfo = null; // TODO: Initialize to an appropriate value string name = string.Empty; // TODO: Initialize to an appropriate value int startIndex = 0; // TODO: Initialize to an appropriate value int count = 0; // TODO: Initialize to an appropriate value string sorting = string.Empty; // 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.GetProfileByFilter(sessioninfo, name, startIndex, count, sorting); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public static object UpdateProfile(SessionInfo sessioninfo, MA_USER_PROFILE record) { try { ProfileBusiness _profileBusiness = new ProfileBusiness(); record.ID = record.ID; record.LABEL = record.LABEL; record.ISACTIVE = record.ISACTIVE; var addedStudent = _profileBusiness.UpdateUserProfile(sessioninfo, record); return new { Result = "OK" }; } catch (Exception ex) { return new { Result = "ERROR", Message = ex.Message }; } }
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 }; } }
public static object GetProfileByFilter(SessionInfo sessioninfo, string name, int jtStartIndex, int jtPageSize, string jtSorting) { try { //Return result to jTable ProfileBusiness _profilebusiness = new ProfileBusiness(); //Get data from database List<MA_USER_PROFILE> status = _profilebusiness.GetProfileByFilter(sessioninfo, name, jtSorting); //Return result to jTable return new { Result = "OK", Records = jtPageSize > 0 ? status.Skip(jtStartIndex).Take(jtPageSize).ToList() : status, TotalRecordCount = status.Count }; } catch (BusinessWorkflowsException bex) { return new { Result = "ERROR", Message = bex.Message }; } catch (Exception ex) { return new { Result = "ERROR", Message = ex.Message }; } }
public void ProfileBusinessConstructorTest() { ProfileBusiness target = new ProfileBusiness(); Assert.Inconclusive("TODO: Implement code to verify target"); }
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."); }