public void Sprint_Fetch_Info_List() { SprintTestHelper.SprintAdd(); SprintTestHelper.SprintAdd(); var sprints = SprintRepository.SprintFetchInfoList(new SprintDataCriteria()); Assert.IsTrue(sprints.Count() > 1, "Row returned should be greater than one"); }
public void Sprint_Fetch() { var sprint = SprintTestHelper.SprintNew(); sprint = SprintRepository.SprintSave(sprint); sprint = SprintRepository.SprintFetch(sprint.SprintId); Assert.IsTrue(sprint != null, "Row returned should not equal null"); }
public void Sprint_Add() { var sprint = SprintTestHelper.SprintNew(); Assert.IsTrue(sprint.IsValid, "IsValid should be true"); sprint = SprintRepository.SprintSave(sprint); Assert.IsTrue(sprint.SprintId != 0, "SprintId should be a non-zero value"); SprintRepository.SprintFetch(sprint.SprintId); }
public void Sprint_Edit() { var sprint = SprintTestHelper.SprintNew(); var name = sprint.Name; Assert.IsTrue(sprint.IsValid, "IsValid should be true"); sprint = SprintRepository.SprintSave(sprint); sprint = SprintRepository.SprintFetch(sprint.SprintId); sprint.Name = DataHelper.RandomString(20); sprint = SprintRepository.SprintSave(sprint); sprint = SprintRepository.SprintFetch(sprint.SprintId); Assert.IsTrue(sprint.Name != name, "Name should have different value"); }
public void Sprint_Delete() { var sprint = SprintTestHelper.SprintNew(); Assert.IsTrue(sprint.IsValid, "IsValid should be true"); sprint = SprintRepository.SprintSave(sprint); sprint = SprintRepository.SprintFetch(sprint.SprintId); SprintRepository.SprintDelete(sprint.SprintId); try { SprintRepository.SprintFetch(sprint.SprintId); } catch (Exception ex) { Assert.IsTrue(ex.GetBaseException() is InvalidOperationException); } }