Beispiel #1
0
        public void Verify_TestProgramCourseProgressService_GetProgramCourseProgressReport_Returns_Data_Against_TestStudent()
        {
            IProgramCourseProgressService programCourseRepository = new ProgramCourseProgressService(new TestProgramCourseProgressRepository());
            var studentProgramCourse = programCourseRepository.GetStudentProgramCoursePrograssDetail(1);

            Assert.IsNotNull(studentProgramCourse);
            Assert.IsNotNull(studentProgramCourse.StudentName);
            Assert.IsNotNull(studentProgramCourse.programCoursePrograss);
            Assert.IsTrue(studentProgramCourse.programCoursePrograss.Count > 0);
        }
Beispiel #2
0
        public void Verify_ProgramCourseProgressService_GetProgramCourseProgressReport_Returns_Empty_Data_Against_DbStudent()
        {
            IProgramCourseProgressService programCourseRepository = new ProgramCourseProgressService();
            var studentProgramCourse = programCourseRepository.GetStudentProgramCoursePrograssDetail(TestConstants.InvalidUserId);

            Assert.IsNotNull(studentProgramCourse);
            Assert.IsNull(studentProgramCourse.StudentName);
            Assert.IsNotNull(studentProgramCourse.programCoursePrograss);
            Assert.IsTrue(studentProgramCourse.programCoursePrograss.Count == 0);
        }
Beispiel #3
0
        public ActionResult ProgramCourseProgress()
        {
            try
            {
                IProgramCourseProgressService programCourseProgressService = new ProgramCourseProgressService();
                var programCourseProgress = programCourseProgressService.GetStudentProgramCoursePrograssDetail(StudentNo);

                return(View(programCourseProgress));
            }
            catch (Exception ex)
            {
                //ViewData["ErrorMessage"] = ex.Message;
                Response.Redirect("../User/Result/error");

                return(null);
            }
        }
Beispiel #4
0
        public ActionResult ProgramCourseProgress()
        {
            try
            {
                IProgramCourseProgressService programCourseProgressService = new ProgramCourseProgressService();
                var programCourseProgress = programCourseProgressService.GetStudentProgramCoursePrograssDetail(StudentNo);

                return(View(programCourseProgress));
            }
            catch (Exception ex)
            {
                _logger.Error("Exception Occurred. StudentNo: " + StudentNo, ex);

                Response.Redirect(AppHelper.SharedUrl("Reply/Error"));

                return(null);
            }
        }