public void Sprint_Fetch() { Exception exception = null; var sprint = BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleReview.UserName, SprintTestsWithRoleReview.UserPassword); try { SprintService.SprintFetch(sprint.SprintId); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception == null, "Exception should be null"); }
public void Sprint_Delete() { var sprint = BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleContribute.UserName, SprintTestsWithRoleContribute.UserPassword); Exception exception = null; try { SprintService.SprintDelete(sprint.SprintId); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception == null, "Exception should be null"); }
public void Sprint_Delete() { var sprint = BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleReview.UserName, SprintTestsWithRoleReview.UserPassword); Exception exception = null; try { SprintService.SprintDelete(sprint.SprintId); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception != null, "Exception should not be null"); Assert.IsTrue(exception.GetBaseException() is SecurityException); }
public void Sprint_Edit() { var sprint = BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleContribute.UserName, SprintTestsWithRoleContribute.UserPassword); Exception exception = null; try { sprint = SprintService.SprintFetch(sprint.SprintId); sprint.Name = DataHelper.RandomString(20); SprintService.SprintSave(sprint); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception == null, "Exception should be null"); }
public void Sprint_Fetch_List() { BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleContribute.UserName, SprintTestsWithRoleContribute.UserPassword); BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleContribute.UserName, SprintTestsWithRoleContribute.UserPassword); Exception exception = null; try { SprintService.SprintFetchInfoList(); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception == null, "Exception should be null"); }
public void Sprint_Edit() { var sprint = BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleReview.UserName, SprintTestsWithRoleReview.UserPassword); Exception exception = null; try { sprint = SprintService.SprintFetch(sprint.SprintId); sprint.Name = DataHelper.RandomString(20); SprintService.SprintSave(sprint); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception != null, "Exception should not be null"); Assert.IsTrue(exception.GetBaseException() is SecurityException); }