Ejemplo n.º 1
0
        public void ReadAllSectorsTest_henten()
        {
            var db = new DEBGroup.DatabaseFacade.SectorDatabaseFacade(new FakeDatabaseFacade());

            DEBGroup.EF.Sector ens = db.Read(2);

            Assert.AreEqual("refhdk", ens.SectorName);
        }
Ejemplo n.º 2
0
        public void ReadAllSectorsTest()
        {
            var db = new DEBGroup.DatabaseFacade.SectorDatabaseFacade(new FakeDatabaseFacade());

            List <DEBGroup.EF.Sector> allSectors = db.Read();

            Assert.AreEqual(4, allSectors.Count);
            CollectionAssert.AllItemsAreUnique(allSectors);
        }