private WebSpeciesFact GetSpeciesFact(WebSpeciesFact speciesFact)
        {
            List <Int32> speciesFactIds;

            speciesFactIds = new List <Int32>();
            speciesFactIds.Add(speciesFact.Id);
            return(SpeciesFactManager.GetSpeciesFactsById(GetContext(), speciesFactIds)[0]);
        }
        public void GetSpeciesFactsById()
        {
            List <WebSpeciesFact> speciesFacts;
            List <Int32>          speciesFactIds;

            speciesFactIds = new List <Int32>();
            speciesFactIds.Add(1);
            speciesFacts = SpeciesFactManager.GetSpeciesFactsById(GetContext(), speciesFactIds);
            Assert.IsNotNull(speciesFacts);
            Assert.AreEqual(speciesFacts.Count, speciesFactIds.Count);
        }
        public void GetSpeciesFactsByIdToManyError()
        {
            Int32 speciesFactIdIndex;
            List <WebSpeciesFact> speciesFacts;
            List <Int32>          speciesFactIds;

            speciesFactIds = new List <Int32>();
            for (speciesFactIdIndex = 0; speciesFactIdIndex < (SpeciesFactManager.MAX_SPECIES_FACTS + 2); speciesFactIdIndex++)
            {
                speciesFactIds.Add(speciesFactIdIndex);
            }
            speciesFacts = SpeciesFactManager.GetSpeciesFactsById(GetContext(), speciesFactIds);
            Assert.IsNotNull(speciesFacts);
            Assert.AreEqual(speciesFacts.Count, speciesFactIds.Count);
        }