Пример #1
0
        public void AddBookDescriptionConsistencyTest()
        {
            var bookDescription = repository.GetBookDescription("Harry Potter");

            Assert.AreEqual(repository.GetAllBookDescriptions().Count(), 5);
            repository.AddBookDescription(bookDescription);
            Assert.AreEqual(repository.GetAllBookDescriptions().Count(), 5);
        }
Пример #2
0
        public void DeleteBookDescription(string title)
        {
            var bookDescription = _dataRepository.GetBookDescription(title);

            _dataRepository.DeleteBookDescription(bookDescription);
        }