Пример #1
0
        public void Init()
        {
            //Creates a temporary folder for testing
            path = Directory.GetCurrentDirectory() + "\\ControllerTest";
            Directory.CreateDirectory(path);

            sub1             = new Submission("1", "a", "*****@*****.**", "73577357", DateTime.Now, 1);
            dub1             = new Submission("11", "aa", "*****@*****.**", "73577357", DateTime.Now, 1);
            weirdEmail       = new Submission("2", "b", "2asd", "73577357", DateTime.Now, 2);
            incorrectNumber  = new Submission("3", "c", "*****@*****.**", "asdasd", DateTime.Now, 3);
            missingFirstName = new Submission("", "d", "*****@*****.**", "73577357", DateTime.Now, 4);
            missingLastName  = new Submission("5", "", "*****@*****.**", "73577357", DateTime.Now, 5);
            sub6             = new Submission("1", "a", "*****@*****.**", "73577357", DateTime.Now, 6);
            sub7             = new Submission("1", "a", "*****@*****.**", "73577357", DateTime.Now, 7);

            controller = new GiveAwayController(path);
        }
Пример #2
0
 public HomeController(IGiveAway giveAway)
 {
     _giveAway = giveAway;
 }