Exemplo n.º 1
0
        static void Main(string[] args)
        {
            List <IVisitable> teamWork   = new List <IVisitable>();
            TextReport        textReport = new TextReport();

            //*******Create task structure
            //Epic1(Presupuesto 100€)
            // Feature1 (Equipo Warrior)
            //    -US1(5 p)
            //        T1(4h)
            //    - US2(3p)
            //        T2(3h)

            //US1
            var us1 = new Us(5, "us1");

            us1.Add(new TeamTask(4, "t1"));

            //US2
            var us2 = new Us(3, "us2");

            us2.Add(new TeamTask(3, "t2"));

            //US3
            var us3 = new Us(5, "us3");

            us3.Add(new TeamTask(5, "t3"));

            var f1 = new Feature("Equipo WARRIOR", "Feature1");

            f1.Add(us1);
            f1.Add(us2);

            var f2 = new Feature("Equipo Vikings", "Feature2");

            f2.Add(us1);
            f2.Add(us2);
            f2.Add(us3);

            var epic1 = new Epic(100, "Epic1");

            epic1.Add(f1);

            var epic2 = new Epic(200, "Epic2");

            epic2.Add(f2);
            //Store tasks
            teamWork.Add(epic1);
            teamWork.Add(epic2);

            textReport.GenerateIterator(teamWork);

            //// Wait for user
            Console.ReadKey();
        }
Exemplo n.º 2
0
        public void Visit(Epic task)
        {
            DateTime localDate = DateTime.Now;

            //Display euro symbol
            Console.OutputEncoding = System.Text.Encoding.UTF8;

            var display = "Estado del proyecto a " + localDate + "\n"
                          + "======\n"
                          + task.name + " (Presupuesto " + task.budget + Convert.ToChar('€') + ")" + "\n"
                          + "======\n";

            Console.WriteLine("{0}", display);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            List <IVisitable> teamWork   = new List <IVisitable>();
            TextReport        textReport = new TextReport();
            JSONReport        jsonReport = new JSONReport();

            //Create task structure
            //US1
            var us1 = new US(5, "us1");

            us1.Add(new TeamTask(4, "t1"));

            //US2
            var us2 = new US(3, "us2");

            us2.Add(new TeamTask(3, "t2"));

            var f1 = new Feature("Equipo WARRIOR", "Feature1");

            f1.Add(us1);
            f1.Add(us2);

            var f2 = new Feature("Equipo WARRIOR2", "Feature2");

            f2.Add(us1);
            f2.Add(us2);

            var epic1 = new Epic(100, "Epic1");

            epic1.Add(f1);

            var epic2 = new Epic(200, "Epic2");

            epic2.Add(f2);
            //Store tasks
            teamWork.Add(epic1);
            teamWork.Add(epic2);

            textReport.Generate(teamWork);
            jsonReport.Generate(teamWork);

            //// Wait for user
            Console.ReadKey();
        }
Exemplo n.º 4
0
        public void Visit(Epic epic)
        {
            var display = "{\n type:”epic”,\n description: “Epic1 \n";

            Console.WriteLine("{0}", display);
        }