Exemple #1
0
        public void SacuvajIzmereneVrednostiPanelaUBazu()
        {
            IShes      shesRepo   = new FakeShesRepozitorijum();
            ShesMetode shesMetode = new ShesMetode(shesRepo);

            shesMetode.IzmereneSnagePanelaDodaj(s1.Ime, s.Vreme, 200);
            Assert.AreEqual(_BROJ_IZMERENIH_VREDNOSTI_PANELA, shesMetode.BrojIzmerenihSnagaSPanela());
        }
Exemple #2
0
        public void BrojPanela()
        {
            Mock <IShes> shesRepository = new Mock <IShes>();

            shesRepository.Setup(x => x.VratiBrojIzmerenihSnagaPanela()).Returns(3);
            ShesMetode shesMetode = new ShesMetode(shesRepository.Object);
            int        result     = shesMetode.BrojIzmerenihSnagaSPanela();

            Assert.AreEqual(3, result);
        }