Esempio n. 1
0
        public void CreateList()
        {
            CreateListLogic logic = new CreateListLogic();

            CreateUser();
            Assert.IsNotNull(logic.CreateList("De Titel/Woordje1-Woordje2|Gras-Groen|?isPublic=false/Woordjes", "Quinn2500"), "Lijst is niet aangemaakt");
            db.DeleteUser("Quinn2500");
            DeleteList("De Titel", "Quinn2500");
        }
        public ActionResult LijstOverzicht(string id)
        {
            CreateListLogic   logic = new CreateListLogic();
            ListOverviewModel model = new ListOverviewModel();
            Lijst             l     = logic.CreateList(id, HttpContext.Session.GetString("Username"));

            model.Lijstje = l;
            return(View(model));
        }
Esempio n. 3
0
        public void DashboardLogic()
        {
            CreateListLogic   createListLogic   = new CreateListLogic();
            ListOverviewLogic listOverviewLogic = new ListOverviewLogic();
            PublicListLogic   publicListlogic   = new PublicListLogic();

            CreateUser();
            Makelist();
            Assert.IsNotNull(createListLogic.CreateList("De Titel/Woordje1-Woordje2|Gras-Groen|?isPublic=false/Woordjes", "Quinn2500"), "Lijst niet aangemaakt");
            Assert.IsNotNull(listOverviewLogic.GiveList("De Titel", "Quinn2500"), "Kan lijst niet ophalen");
            Assert.IsNotNull(publicListlogic.GetAllPublicLists("Quinn"), "Kan lijsten niet ophalen");
            Assert.IsNotNull(publicListlogic.GetAllApprovedLists("Quinn"), "Kan lijsten niet ophalen");
            db.DeleteUser("Quinn2500");
            DeleteList("De Titel", "Quinn2500");
        }
Esempio n. 4
0
        public void Makelist()
        {
            CreateListLogic logic = new CreateListLogic();

            logic.CreateList("De Titel/Woordje1-Woordje2|Gras-Groen|?isPublic=true/Woordjes", "Quinn2500");
        }
        public JsonResult CheckTitel(string id)
        {
            CreateListLogic logic = new CreateListLogic();

            return(new JsonResult(logic.CheckIfTitelExists(id, HttpContext.Session.GetString("Username"))));
        }