public static WebTaxonCountyOccurrence GetOneTaxonCountyOccurrence(WebServiceContext context) { Int32 taxonId; List <WebTaxonCountyOccurrence> countyOccurrencies; taxonId = BEAR_TAXON_ID; countyOccurrencies = SpeciesFactManager.GetTaxonCountyOccurence(context, taxonId); return(countyOccurrencies[0]); }
public void GetTaxonCountyOccurrence() { Int32 taxonId; List <WebTaxonCountyOccurrence> countyOccurrencies; taxonId = BEAR_TAXON_ID; countyOccurrencies = SpeciesFactManager.GetTaxonCountyOccurence(GetContext(), taxonId); Assert.IsTrue(countyOccurrencies.IsNotEmpty()); foreach (WebTaxonCountyOccurrence countyOccurrence in countyOccurrencies) { Assert.IsNotNull(countyOccurrence); Assert.AreEqual(taxonId, countyOccurrence.TaxonId); } }