示例#1
0
        public static Timetable GetFakeTimetable()
        {
            Timetable tt = new Timetable(Semester.GetSemester());

            tt.AddNewBlock(new Block
            {
                BlockType = BlockType.Excercise,
                Day       = Day.Monday,
                Duration  = 2,
                StartHour = 7
            });
            tt.AddNewBlock(new Block
            {
                BlockType = BlockType.Excercise,
                Day       = Day.Monday,
                Duration  = 2,
                StartHour = 10
            });
            tt.AddNewBlock(new Block
            {
                BlockType = BlockType.Excercise,
                Day       = Day.Tuesday,
                Duration  = 2,
                StartHour = 16
            });
            tt.AddNewBlock(new Block
            {
                BlockType = BlockType.Lecture,
                Day       = Day.Wednesday,
                Duration  = 2,
                StartHour = 12
            });
            tt.AddNewBlock(new Block
            {
                BlockType = BlockType.Lecture,
                Day       = Day.Thursday,
                Duration  = 2,
                StartHour = 11
            });
            return(tt);
        }