Exemplo n.º 1
0
        public void RemoveBookTest()
        {
            TestRepository testRepository = new TestRepository();
            DataService    dataService    = new DataService(testRepository);
            Book           book           = new Book("Pan Tadeusz1", "Adam M", Guid.Parse("52D2DA0E-22C1-4A0E-BF60-96859EB5A143"));

            testRepository.AddBook(book);
            dataService.RemoveBook(book);
            Assert.AreEqual(0, testRepository.books.Count);
        }