private static int GetToBeTestTaskState(EntityStates states) { return states.Items.Single(i => i.EntityType.Name.Equals("Task") && i.Name.Equals("To be tested")).Id; }
private static int GetInProgressStoryStateId(EntityStates states) { return states.Items.Single(i => i.EntityType.Name.Equals("UserStory") && i.Name.Equals("In Progress")).Id; }
private static int GetOpenTaskStateId(EntityStates states) { return states.Items.Single(i => i.EntityType.Name.Equals("Task") && i.IsInitial).Id; }
private static int GetDoneStoryStateId(EntityStates states) { return states.Items.Single(i => i.EntityType.Name.Equals("UserStory") && i.IsFinal).Id; }