public void LoginTest1()
 {
     String url = "/Help/Index";
     HomeController controller = new HomeController();
     ActionResult result = controller.Login(url);
     Assert.IsNotNull(result);
 }
        public void LoginTest()
        {
            using (TransactionScope transaction = new TransactionScope())
            {
                UserLoginModel model = new UserLoginModel();
                HomeController controller = new HomeController();

                model.Password = "******";
                model.Username = "******";

                ActionResult result = controller.Login(model, null);

                Assert.IsNotNull(result);
            }
        }
        public void RegisterTest()
        {
            using (TransactionScope transaction = new TransactionScope())
            {
                UserRegisterModel model = new UserRegisterModel();
                HomeController controller = new HomeController();
                model.Age = 21;
                model.Autonomous_community = "Andalucía";
                model.Email = "*****@*****.**";
                model.Genre = "Masculino";
                model.Username = "******";
                model.Password = "******";
                model.ConfirmPassword = "******";

                ActionResult ar = controller.Register(model);

                Assert.IsNotNull(ar);
            }
        }
 public void RegisterTest1()
 {
     HomeController controller = new HomeController();
     ActionResult result = controller.Register();
     Assert.IsNotNull(result);
 }