Exemple #1
0
        public async Task Setup()
        {
            initializeObjects();
            await seedDatabase();

            readChapterOne = new Assignment()
            {
                CourseId              = math1010.CourseId,
                AssignmentName        = "read chapter one",
                AssignmentDescription = "read all of chapter one"
            };
            bookWork = new Assignment()
            {
                CourseId              = math1010.CourseId,
                AssignmentName        = "some bookwork",
                AssignmentDescription = "some tedious assignment"
            };
            await assignemtRepository.AddAssignmentAsync(readChapterOne);

            await assignemtRepository.AddAssignmentAsync(bookWork);
        }