Beispiel #1
0
        public void TestGuardarSeleccion()
        {
            Init("*****@*****.**");
            PermissionsController controller = new PermissionsController();

            CurrentUser.setCurrentUser("*****@*****.**", "Estudiante", "0000000001", "0000000001");
            controller.GuardarSeleccion("Profesor", "0000000001", "0000000001");
            Assert.AreEqual(CurrentUser.getUserProfile(), "Profesor");
            Assert.AreEqual(CurrentUser.getUserMajorId(), "0000000001");
            Assert.AreEqual(CurrentUser.getUserEmphasisId(), "0000000001");
        }