Пример #1
0
        public ActionResult Delete(FormCollection collection)
        {
            ITaxonRepository Taxon = new TaxonRepository();

            var reviewID = Int32.Parse(collection["ID"]);

            TblReview r = Taxon.getReview(reviewID);

            Taxon.deleteReview(r);

            return(RedirectToAction("Delete"));
        }
Пример #2
0
        //[HostType("ASP.NET")]
        //[AspNetDevelopmentServerHost("C:\\Personal\\dev\\SignificantTrade\\SignificantTrade", "/")]
        //[UrlToTest("http://localhost:2625/")]
        public void DeleteAReview()
        {
            ITaxonRepository Taxon = new TaxonRepository();

            TblReview r = Taxon.getReview(2);

            Taxon.deleteReview(r);

            TblReview r2 = Taxon.getReview(2);

            Assert.AreEqual(r2.Deleted, false);

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