public void GetGridSetting_Test() { //UpdateCurrentUserPersonId(ADOPerson1.ID, ADOUserSet1.ID); busGuncharSettings = new BGanttChartClientSettings(ADOUser1.UserName); GanttChartClientSettings gridSet = busGuncharSettings.GetGanttChartClientSettings(); Assert.AreEqual(ADOgrid1.ID, gridSet.ID); }
public void GetGridSetting_InsertRecordTest() { try { //UpdateCurrentUserPersonId(ADOPerson2.ID); busGuncharSettings = new BGanttChartClientSettings(ADOUser2.UserName); GanttChartClientSettings gridSet = busGuncharSettings.GetGanttChartClientSettings(); Assert.IsTrue(gridSet.ID > 0); Assert.AreEqual(ADOUserSet2.ID, gridSet.UserSetting.ID); } catch (Exception ex) { Assert.Fail(ex.Message); } }
public void Update_Test() { try { //UpdateCurrentUserPersonId(ADOPerson1.ID); busGuncharSettings = new BGanttChartClientSettings(ADOUser1.UserName); grid_testObject = busGuncharSettings.GetGanttChartClientSettings(); ClearSession(); grid_testObject.DailyMission = true; grid_testObject.DailySickLeave = false; busGuncharSettings.SaveChanges(grid_testObject, UIActionType.EDIT); ClearSession(); decimal id = grid_testObject.ID; grid_testObject = new GanttChartClientSettings(); grid_testObject = busGuncharSettings.GetByID(id); Assert.AreEqual(true, grid_testObject.DailyMission); Assert.AreEqual(false, grid_testObject.DailySickLeave); } catch (Exception ex) { Assert.Fail(ex.Message); } }
protected void Button40_Click(object sender, EventArgs e) { BGanttChartClientSettings bus = new BGanttChartClientSettings("asdasd"); bus.GetGanttChartClientSettings(); }