Пример #1
0
        public void TestGetAdWithinLocation()
        {
            var author = "*****@*****.**";
            Ad  ad     = control.PostAd(author, "Unit Test", "This ad was written by a unit test in Denmark.", "Denmark");

            var results = control.GetAdsWithinLocation(0, 100, "Denmark");

            Assert.IsTrue(results.Count > 0);
            control.DeleteAd(ad.Id, author);
        }