Exemplo n.º 1
0
        private void DoneState(BacklogItem backlogItem)
        {
            // BR: Let's send every developer from the backlogItem a notification that their item is approved.

            var tempList = new List <Person>();

            if (backlogItem.GetTasks().Count >= 1)
            {
                foreach (var task in backlogItem.GetTasks())
                {
                    tempList.Add(task.GetAssignedPerson());
                }
            }

            if (backlogItem.GetAssignedPerson() != null)
            {
                tempList.Add(backlogItem.GetAssignedPerson());
            }

            // Send messages
            foreach (var involvedPerson in tempList)
            {
                involvedPerson.SendNotification($"Hi {involvedPerson.GetName()}, backlog item {backlogItem.GetName()} is done! Kudos!");
            }
        }
Exemplo n.º 2
0
        private void DoingState(BacklogItem backlogItem)
        {
            var tempList = new List <Person>();

            if (backlogItem.GetTasks().Count >= 1)
            {
                foreach (var task in backlogItem.GetTasks())
                {
                    tempList.Add(task.GetAssignedPerson());
                }
            }

            if (backlogItem.GetAssignedPerson() != null)
            {
                tempList.Add(backlogItem.GetAssignedPerson());
            }

            // Send messages
            foreach (var involvedPerson in tempList)
            {
                involvedPerson.SendNotification($"Hi {involvedPerson.GetName()}, backlog item {backlogItem.GetName()} is in doing state.");
            }
        }