public void PreviousState() { // BR: If a tester is not satisfied with the backlogItem, it can only go back to To-do, not to doing. // BR: We also notify the scrum master var scrumMaster = _backlogItem.GetSprint().GetScrumMaster(); scrumMaster.SendNotification($"Hello {scrumMaster.GetName()}, your devs have messed up. Please check in with testers"); _backlogItem.ChangeState(new TodoState(_backlogItem)); }
private void TestingState(BacklogItem backlogItem) { var scrumMaster = backlogItem.GetSprint().GetScrumMaster(); scrumMaster.SendNotification($"Hello scrum master {scrumMaster.GetName()}, BacklogItem {backlogItem.GetDescription()} is in Testing state."); }