Пример #1
0
        public void DeleteReaderConsistencyTest()
        {
            Assert.AreEqual(repository.GetAllReaders().Count(), 4);
            repository.DeleteReader(repository.GetReader(3));
            Assert.AreEqual(repository.GetAllReaders().Count(), 4);
            Reader tmp = new Reader("Krzysztof", "Gonciarz");

            repository.AddReader(tmp);
            Assert.AreEqual(repository.GetAllReaders().Count(), 5);
            repository.DeleteReader(tmp);
            Assert.AreEqual(repository.GetAllReaders().Count(), 4);
        }
Пример #2
0
        public void DeleteReader(string name, string lastName)
        {
            var reader = new Reader(name, lastName);

            _dataRepository.DeleteReader(reader);
        }