getAllReviews() public method

public getAllReviews ( ) : IList
return IList
Exemplo n.º 1
0
        public void testgetAllReviews()
        {
            ITaxonRepository Taxon = new TaxonRepository();
            IGenericRepository gen = new GenericRepository();

            // ViewData["Review"] = Taxon.getAllReviews();

            IList<ReviewDesc> reviews = Taxon.getAllReviews();

             int count = reviews.Count;

             if (count > 0)
             {
                 for(int i=0;i<count;i++)
                 {

                     reviews[i].TaxonName = Taxon.getReviewTaxonName(reviews[i].ID, reviews[i].Taxontype, reviews[i].Kingdom);

                 }
             }

             //ReviewDesc r = reviews[0];

             Assert.AreEqual( reviews[0].TaxonName, "test");

             //Assert.AreEqual(count,0);
        }