public void Remove()
 {
     IBooksRepository repository = new MemoryBookRepository();
     Assert.AreEqual(8, repository.GetAll().Count());
     repository.Remove(3);
     Assert.AreEqual(7, repository.GetAll().Count());
     repository.Add(new Book{Title = "Book 1",Price = 30});
     Assert.AreEqual(8, repository.GetAll().Count());
 }
 public void AddBookTest()
 {
     IBooksRepository repository = new MemoryBookRepository();
     repository.Add(new Book
                        {
                            Author = "alguem",
                            Title = "Jquery In Action",
                            Price = 30
                        });
     Assert.AreEqual(9, repository.GetAll().Count());
 }