public void GetDepartments() { GeneratorServiceImpl gs = new GeneratorServiceImpl(); int ActualResult = gs.GetDepartments().Count; var ExpectedResult = 89; Assert.Equal(ExpectedResult, ActualResult); }
public void GetTeachers() { GeneratorServiceImpl gs = new GeneratorServiceImpl(); int ActualResult = gs.GetTeachers().Count; var ExpectedResult = 3582; Assert.Equal(ExpectedResult, ActualResult); }
public void GetGroups() { GeneratorServiceImpl gs = new GeneratorServiceImpl(); int ActualResult = gs.GetGroups().Count; var ExpectedResult = 1549; Assert.Equal(ExpectedResult, ActualResult); }
public void GetAuditoriums() { GeneratorServiceImpl gs = new GeneratorServiceImpl(); int ActualResult = gs.GetAuditoriums().Count; var ExpectedResult = 561; Assert.Equal(ExpectedResult, ActualResult); }
public void GetSubjects() { GeneratorServiceImpl gs = new GeneratorServiceImpl(); int ActualResult = gs.GetSubjectTypes().Count; var ExpectedResult = 9; Assert.Equal(ExpectedResult, ActualResult); }
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))); }
public void AuditoriumsForExistingDepartment() { GeneratorServiceImpl gs = new GeneratorServiceImpl(); short depId = 41; int ActualResult = gs.GetAuditoriumsForDepartment(depId).Count; var ExpectedResult = 15; Assert.Equal(ExpectedResult, ActualResult); }
public void CountTeacherPesonalTime() { GeneratorServiceImpl gs = new GeneratorServiceImpl(); int teacherId = 13; int ActualResult = gs.CountTeacherPersonalTime(teacherId); var ExpectedResult = 4; Assert.Equal(ExpectedResult, ActualResult); }
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()); }
public Generator() { services = new GeneratorServiceImpl(); services.ClearAllGenData(); }