public void emptyTable()
        {
            List <ArrangementModel> arrangementer = new ArrangementModel().readList();

            foreach (ArrangementModel arrangement in arrangementer)
            {
                new ArrangementModel().delete(arrangement.arrangementId);
            }
            Assert.IsTrue(new ArrangementModel().readList().Count == 0, "Tabellen er ikke tom");
        }
        public void checkLast(string web)
        {
            List <ArrangementModel> arrangementer = new ArrangementModel().readList();
            long id = 0;

            foreach (ArrangementModel arrang in arrangementer)
            {
                id = arrang.arrangementId;
            }
            ArrangementModel arrangement = new ArrangementModel().read(id);

            Assert.IsTrue(arrangement.arrangementWeb == web, "Forkert info " + arrangement.arrangementWeb);
        }
        public void updateEntry()
        {
            string after = "http://jazz.dk/cphjazz/forside/";
            List <ArrangementModel> arrangementer = new ArrangementModel().readList();
            long id = 0;

            foreach (ArrangementModel arrang in arrangementer)
            {
                id = arrang.arrangementId;
            }
            ArrangementModel arrangement = new ArrangementModel().read(id);

            arrangement.arrangementWeb = after;
            arrangement.update();
            checkLast(after);
        }