private TaxonCountyOccurrenceList GetCountyOccurrencies(Boolean refresh) { if (_countyOccurrencies.IsNull() || refresh) { _countyOccurrencies = SpeciesFactManagerTest.GetSomeTaxonCountyOccurencies(); } return(_countyOccurrencies); }
public void SquareBracketOperator() { Int32 countyOccurrenceIndex; TaxonCountyOccurrenceList newCountyOccurrencies, oldCountyOccurrencies; oldCountyOccurrencies = GetCountyOccurrencies(); newCountyOccurrencies = new TaxonCountyOccurrenceList(); for (countyOccurrenceIndex = 0; countyOccurrenceIndex < oldCountyOccurrencies.Count; countyOccurrenceIndex++) { newCountyOccurrencies.Add(oldCountyOccurrencies[oldCountyOccurrencies.Count - countyOccurrenceIndex - 1]); } for (countyOccurrenceIndex = 0; countyOccurrenceIndex < oldCountyOccurrencies.Count; countyOccurrenceIndex++) { Assert.AreEqual(newCountyOccurrencies[countyOccurrenceIndex], oldCountyOccurrencies[oldCountyOccurrencies.Count - countyOccurrenceIndex - 1]); } }
public TaxonCountyOccurrenceListTest() { _countyOccurrencies = null; }
/// <summary> /// Create a TaxonCountyOccurrenceTable instance. /// </summary> public TaxonCountyOccurrenceTable() { this.EnableViewState = false; _countyOccurrencies = null; _table = new HtmlTable(); }