Exemple #1
0
        private void SeIpFunc(int id)
        {
            IPrange i = new IPrange();

            CurrentIp = i.GetOne(id);

            UpdateIpRangeVisibility = Visibility.Visible;
            AllIpRangeVisibility    = Visibility.Collapsed;
            OnPropertyChanged(nameof(UpdateIpRangeVisibility));
            OnPropertyChanged(nameof(AllIpRangeVisibility));

            OnPropertyChanged(nameof(CurrentIp));
        }
        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);
        }