public void Hour_Delete() { var hour = BusinessHelper.CreateHourForUserAndLogon( HourTestsWithRoleContribute.UserName, HourTestsWithRoleContribute.UserPassword, HourTestsWithRoleContribute.User.UserId); Exception exception = null; try { HourService.HourDelete(hour.HourId); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception == null, "Exception should be null"); }
public void Hour_Edit() { var hour = BusinessHelper.CreateHourForUserAndLogon( HourTestsWithRoleContribute.UserName, HourTestsWithRoleContribute.UserPassword, HourTestsWithRoleContribute.User.UserId); Exception exception = null; try { hour = HourService.HourFetch(hour.HourId); hour.Notes = DataHelper.RandomString(20); HourService.HourSave(hour); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception == null, "Exception should be null"); }