public void LoginSuccessStudent()
        {
            string   testLastName       = "Hounnou";
            string   testFirstName      = "Koffi";
            string   testLogin          = "******";
            string   testPwd            = "ffiko";
            string   testMailAdresse    = "*****@*****.**";
            DateTime testEnrollmentDate = DateTime.Now;

            EntityGenerator generator = new EntityGenerator(dbContext);
            Student         student   = generator.CreateStudentForLogin(testLastName, testFirstName, testLogin, testPwd, testMailAdresse, testEnrollmentDate);

            var result = controllerToTest.Login(testLogin, testPwd) as RedirectToRouteResult;


            Assert.That(result, Is.Not.Null);
            Assert.That(result.RouteValues["action"], Is.EqualTo("Details"));

            //Assert.That(controllerToTest.Session["UserName"], Is.Not.Null);
        }
        public void CreationSuccesfulStudent()
        {
            string   testAccountType    = "Student";
            string   testLastName       = "Hounnou";
            string   testFirstName      = "Koffi";
            string   testLogin          = "******";
            string   testPwd            = "ffiko";
            string   testMailAdresse    = "*****@*****.**";
            DateTime testEnrollmentDate = DateTime.Now;

            EntityGenerator generator = new EntityGenerator(dbContext);
            Student         student   = generator.CreateStudentForLogin(testLastName, testFirstName, testLogin, testPwd, testMailAdresse, testEnrollmentDate);

            var result        = controllerToTest.CreateAccount(testAccountType, testLastName, testFirstName, testMailAdresse, testLogin, testPwd) as ViewResult;
            var resultStudent = controllerToTest.CreateAccount(testAccountType, testLastName, testFirstName, testMailAdresse, testLogin, testPwd);

            Assert.That(result, Is.Not.Null);
            Assert.That(resultStudent, Is.Not.Null);
            // Assert.That(testLastName, Is.EqualTo(resultStudent.LastName));
            //    Assert.That(expectedFirstName, Is.EqualTo(resultModel.FirstMidName));
        }