Ejemplo n.º 1
0
        public void AddReaderToDatabaseTest()
        {
            Assert.IsTrue(ReaderService.AddReader("Sharoon", "Steel"));
            Assert.AreEqual(ReaderService.GetAllReadersNumber(), 6);

            //delete to restore original db
            Assert.IsTrue(ReaderService.DeleteReader("Sharoon", "Steel"));
        }
Ejemplo n.º 2
0
 public void AddExisistingReaderToDatabaseTest()
 {
     Assert.IsFalse(ReaderService.AddReader("Neave", "Oneal"));
     Assert.AreEqual(ReaderService.GetAllReadersNumber(), 5);
 }
Ejemplo n.º 3
0
 public void GetReadersFromDatabaseTest()
 {
     Assert.AreEqual(ReaderService.GetAllReadersNumber(), 5);
 }