private Data.ArtDatabankenService.BirdNestActivityList GetBirdNestActivities(Boolean refresh)
 {
     if (_birdNestActivities.IsNull() || refresh)
     {
         _birdNestActivities = SpeciesObservationManagerTest.GetAllBirdNestActivities();
     }
     return(_birdNestActivities);
 }
        public void SquareBracketOperator()
        {
            Int32 birdNestActivityIndex;

            Data.ArtDatabankenService.BirdNestActivityList newBirdNestActivityList, oldBirdNestActivityList;

            oldBirdNestActivityList = GetBirdNestActivities(true);
            newBirdNestActivityList = new Data.ArtDatabankenService.BirdNestActivityList();
            for (birdNestActivityIndex = 0; birdNestActivityIndex < oldBirdNestActivityList.Count; birdNestActivityIndex++)
            {
                newBirdNestActivityList.Add(oldBirdNestActivityList[oldBirdNestActivityList.Count - birdNestActivityIndex - 1]);
            }
            for (birdNestActivityIndex = 0; birdNestActivityIndex < oldBirdNestActivityList.Count; birdNestActivityIndex++)
            {
                Assert.AreEqual(newBirdNestActivityList[birdNestActivityIndex], oldBirdNestActivityList[oldBirdNestActivityList.Count - birdNestActivityIndex - 1]);
            }
        }
 public BirdNestActivityListTest()
 {
     _birdNestActivities = null;
 }