private void RedigerSkema(int id)
        {
            Forside f = new Forside();

            Application.Current.Resources["editForside"] = f.GetOne(id);

            var frame = new Frame();

            frame.Navigate(typeof(OpretKolonne), null);
            Window.Current.Content = frame;
        }
        private void SeMereFunc(int id)
        {
            Forside f = new Forside();

            Application.Current.Resources["forside"] = f.GetOne(id);

            var frame = new Frame();

            frame.Navigate(typeof(KolonneEdit), null);
            Window.Current.Content = frame;
        }
        public void TestGetOne()
        {
            Administrator a = new Administrator();

            Assert.AreEqual(1, a.GetOne(1).ID);

            Færdigvarekontrol f = new Færdigvarekontrol();

            Assert.AreEqual(1, f.GetOne(1).ProcessordreNr);

            Forside fo = new Forside();

            Assert.AreEqual("FAXE KONDI 25 L KEG", fo.GetOne(1).FærdigvareNavn);

            IPrange ip = new IPrange();

            Assert.AreEqual(1, ip.GetOne(1).ID);

            Kolonne2 k2 = new Kolonne2();

            Assert.AreEqual(1, k2.GetOne(1).ID);

            Kontrolregistrering kr = new Kontrolregistrering();

            Assert.AreEqual(1, kr.GetOne(1).ID);

            KontrolSkema ks = new KontrolSkema();

            Assert.AreEqual(1, ks.GetOne(1).ID);

            Produktionsfølgeseddel pf = new Produktionsfølgeseddel();

            Assert.AreEqual(1, pf.GetOne(1).ID);

            RengøringsKolonne rk = new RengøringsKolonne();

            Assert.AreEqual(1, rk.GetOne(1).ID);
        }