public void CreateBook() { RestAccess db = RestAccess.GetInstance(); db.CreateBook("name", 999, "name", "desc"); System.Diagnostics.Debug.WriteLine("after creation"); List <Book> list = db.GetBooks(); System.Diagnostics.Debug.WriteLine("AFTER GETBOOKS"); Book book = list.Last(); System.Diagnostics.Debug.WriteLine("GOT TO DELETE"); db.DeleteLastBook(); Assert.AreEqual(book.Author, "name"); }