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

            shesMetode.SacuvajElektroDistribucijaPodatke(DateTime.Now, -1, 5.2);
            Assert.AreEqual(_BROJ_IZMERENIH_VREDNOSTI_PANELA, shesMetode.BrojElektrodistribucijaPodatakaBaza());
        }
Beispiel #2
0
        public void BrojPodatakaElektrodistribucija()
        {
            Mock <IShes> shesRepository = new Mock <IShes>();

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

            Assert.AreEqual(3, result);
        }