static void Main(string[] args) { BookListService books = new BookListService("test.txt"); books.Show(); try { books.AddBook(new Book { Author = "Author1", Title = "Title2", PublishingHouse = "House", Year = 1994 }); } catch (BookException exc) { logger.Error(exc.Message, exc); } try { books.RemoveBook(new Book { Author = "Authorr", Title = "Title", PublishingHouse = "Publishing", Year = 1923 }); } catch (BookException exc) { logger.Error(exc.Message, exc); } System.Console.WriteLine(); books.Show(); }