Example #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);
        }
Example #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);
        }