Esempio n. 1
0
        public void GetDepartments()
        {
            GeneratorServiceImpl gs = new GeneratorServiceImpl();
            int ActualResult        = gs.GetDepartments().Count;
            var ExpectedResult      = 89;

            Assert.Equal(ExpectedResult, ActualResult);
        }
Esempio n. 2
0
        public void GetTeachers()
        {
            GeneratorServiceImpl gs = new GeneratorServiceImpl();
            int ActualResult        = gs.GetTeachers().Count;
            var ExpectedResult      = 3582;

            Assert.Equal(ExpectedResult, ActualResult);
        }
Esempio n. 3
0
        public void GetGroups()
        {
            GeneratorServiceImpl gs = new GeneratorServiceImpl();
            int ActualResult        = gs.GetGroups().Count;
            var ExpectedResult      = 1549;

            Assert.Equal(ExpectedResult, ActualResult);
        }
Esempio n. 4
0
        public void GetAuditoriums()
        {
            GeneratorServiceImpl gs = new GeneratorServiceImpl();
            int ActualResult        = gs.GetAuditoriums().Count;
            var ExpectedResult      = 561;

            Assert.Equal(ExpectedResult, ActualResult);
        }
Esempio n. 5
0
        public void GetSubjects()
        {
            GeneratorServiceImpl gs = new GeneratorServiceImpl();
            int ActualResult        = gs.GetSubjectTypes().Count;
            var ExpectedResult      = 9;

            Assert.Equal(ExpectedResult, ActualResult);
        }
Esempio n. 6
0
        public ActionResult Timetable(int id, byte weekId)
        {
            GeneratorServiceImpl gr = new GeneratorServiceImpl();

            ViewBag.Faculty = gr.GetFacultie(id);
            ViewBag.Week    = gr.GetWeekNumber(weekId);
            return(View(gr.GetGroupScheduleView(id, weekId)));
        }
Esempio n. 7
0
        public void AuditoriumsForExistingDepartment()
        {
            GeneratorServiceImpl gs = new GeneratorServiceImpl();
            short depId             = 41;
            int   ActualResult      = gs.GetAuditoriumsForDepartment(depId).Count;
            var   ExpectedResult    = 15;

            Assert.Equal(ExpectedResult, ActualResult);
        }
Esempio n. 8
0
        public void CountTeacherPesonalTime()
        {
            GeneratorServiceImpl gs = new GeneratorServiceImpl();
            int teacherId           = 13;
            int ActualResult        = gs.CountTeacherPersonalTime(teacherId);
            var ExpectedResult      = 4;

            Assert.Equal(ExpectedResult, ActualResult);
        }
Esempio n. 9
0
        public ActionResult Faculties()
        {
            GeneratorServiceImpl gr = new GeneratorServiceImpl();

            ViewBag.Faculties = gr.GetFacultiesView().OrderBy(f => f.Name);
            Microsoft.AspNetCore.Mvc.Rendering.SelectList weeks = new Microsoft.AspNetCore.Mvc.Rendering.SelectList(gr.GetWeeks(), "Id", "Number");
            ViewBag.Weeks = weeks;
            return(View());
        }
Esempio n. 10
0
 public Generator()
 {
     services = new GeneratorServiceImpl();
     services.ClearAllGenData();
 }