package seedu.address.testutil;

import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.TaskList;
import seedu.address.model.task.Task;
import seedu.address.model.task.UniqueTaskList;

/**
 *
 */
public class TypicalTestTasks {

    public TestTask alice, benson, carl, daniel, elle, fiona, george, hoon, ida;

    public TypicalTestTasks() {
        try {
            alice = new TaskBuilder().withDescription("Say hello to Alice Pauline")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/03/2100")
                    .withPriority("3")
                    .withTags("friends").build();
            benson = new TaskBuilder().withDescription("Say goodbye to Benson Meier")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/12/2110")
                    .withPriority("2")
                    .withTags("owesMoney", "friends").build();
            carl = new TaskBuilder().withDescription("Say hi to Carl Kurz")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/12/2110")
                    .withPriority("2").build();
            daniel = new TaskBuilder().withDescription("Say farewell to Daniel Meier")
                    .withStartDate("01/02/1017")
                    .withEndDate("02/03/2100")
                    .withPriority("3").build();
            elle = new TaskBuilder().withDescription("Say howdy to Elle Meyer")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/03/2110")
                    .withPriority("1").build();
            fiona = new TaskBuilder().withDescription("Say so long to Fiona Kunz")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/03/2100")
                    .withPriority("1").build();
            george = new TaskBuilder().withDescription("Say greetings to George Best")
                    .withStartDate("01/02/2017")
                    .withEndDate("02/03/2100")
                    .withPriority("3").build();
        } catch (IllegalValueException e) {
            e.printStackTrace();
            assert false : "not possible";
        }
    }

    public static void loadAddressBookWithSampleData(TaskList ab) {
        for (TestTask Task : new TypicalTestTasks().getTypicalTasks()) {
            try {
                ab.addTask(new Task(Task));
            } catch (UniqueTaskList.DuplicateTaskException e) {
                assert false : "not possible";
            }
        }
    }

    public TestTask[] getTypicalTasks() {
        return new TestTask[]{alice, benson, carl, daniel, elle, fiona, george};
    }

    public TaskList getTypicalTaskList() {
        TaskList ab = new TaskList();
        loadAddressBookWithSampleData(ab);
        return ab;
    }
}

@@ -331,17 +331,17 @@
 ge, 
-hoon, ida
+ida, hoon
 ;%0A%0A 
@@ -2063,32 +2063,499 @@
 y(%223%22).build();%0A
+            ida = new TaskBuilder().withDescription(%22Say greetings to Ida Noasdergen%22)%0A                    .withStartDate(%2201/02/2020%22)%0A                    .withEndDate(%2202/10/2100%22)%0A                    .withPriority(%221%22).build();%0A            hoon = new TaskBuilder().withDescription(%22Say greetings to Hoon Loffschringer%22)%0A                    .withStartDate(%2201/02/2020%22)%0A                    .withEndDate(%2212/10/2100%22)%0A                    .withPriority(%223%22).build();%0A
         %7D catch 

add back ida and hoon to pass test