/// <summary>
 /// Get all dyntaxa revision species fact latest change for specific revision id
 /// </summary>
 /// <param name="clientInformation"></param>
 /// <param name="taxonRevisionId"></param>
 /// <returns></returns>
 public List <WebDyntaxaRevisionSpeciesFact> GetAllDyntaxaRevisionSpeciesFacts(
     WebClientInformation clientInformation,
     Int32 taxonRevisionId)
 {
     using (WebServiceContext context = new WebServiceContext(clientInformation))
     {
         try
         {
             return(DyntaxaManager.GetAllDyntaxaRevisionSpeciesFacts(context, taxonRevisionId));
         }
         catch (Exception exception)
         {
             WebServiceData.LogManager.LogError(context, exception);
             throw;
         }
     }
 }
        public void GetAllDyntaxaRevisionSpeciesFacts_WhenSpeciesFactExists_ThenSpeciesFactIsReturned()
        {
            WebDyntaxaRevisionSpeciesFact        dyntaxaRevisionSpeciesFact, getDyntaxaRevisionSpeciesFact;
            List <WebDyntaxaRevisionSpeciesFact> dyntaxaRevisionSpeciesFacts;
            const int STATUS_ID = 400;

            // Create test Dyntaxa revision species fact.
            dyntaxaRevisionSpeciesFact             = WebDyntaxaSpeciesFactTestFactory.Create((Int32)TaxonId.Bear);
            dyntaxaRevisionSpeciesFact.FactorId    = (Int32)FactorId.SwedishHistory;
            dyntaxaRevisionSpeciesFact.RevisionId  = 24;
            dyntaxaRevisionSpeciesFact.IsPublished = false;
            dyntaxaRevisionSpeciesFact.StatusId    = STATUS_ID;
            DyntaxaManager.CreateDyntaxaRevisionSpeciesFact(GetRevisionContext(), dyntaxaRevisionSpeciesFact);

            dyntaxaRevisionSpeciesFacts = DyntaxaManager.GetAllDyntaxaRevisionSpeciesFacts(
                GetRevisionContext(), 24);

            Assert.AreEqual(1, dyntaxaRevisionSpeciesFacts.Count);
        }