Esempio n. 1
0
        public void GetBookReveiwCountsTest()
        {
            string             DeveloperKey = DevelopersKey.Key;
            GoodReads          target       = new GoodReads(DeveloperKey);
            List <string>      isbns        = new List <string>(new string[] { "0345451325" });
            int                expected     = 60229;
            List <ReviewCount> actual;

            actual = target.GetBookReviewCounts(isbns);
            Assert.AreEqual(expected, actual[0].id);
        }
Esempio n. 2
0
        public void GetBookIDTestMatch()
        {
            string    DeveloperKey = DevelopersKey.Key;
            GoodReads target       = new GoodReads(DeveloperKey);
            string    isbn         = "0345451325";
            int       expected     = 60229;
            int       actual;

            actual = target.GetBookID(isbn);
            Assert.AreEqual(expected, actual);
        }