/// <summary>
 /// Get all Dyntaxa Revision Reference relation items.
 /// </summary>
 /// <param name="clientInformation">Client information.</param>
 /// <param name="revisionId">Revision id.</param>
 /// <returns></returns>
 public List <WebDyntaxaRevisionReferenceRelation> GetAllDyntaxaRevisionReferenceRelations(
     WebClientInformation clientInformation,
     int revisionId)
 {
     using (WebServiceContext context = new WebServiceContext(clientInformation))
     {
         try
         {
             return(DyntaxaManager.GetAllDyntaxaRevisionReferenceRelations(context, revisionId));
         }
         catch (Exception exception)
         {
             WebServiceData.LogManager.LogError(context, exception);
             throw;
         }
     }
 }
        public void GetAllDyntaxaRevisionReferenceRelations_WhenReferenceRelationExists_ThenReferenceRelationIsReturned()
        {
            //Arrange
            List <WebDyntaxaRevisionReferenceRelation> referenceRelations;
            const int    revisionId               = 24;
            const string relatedObjectGUID        = "urn:lsid:dyntaxa.se:Taxon:6010174";
            const string action                   = "Add";
            var          dyntaxaReferenceRelation = WebDyntaxaReferenceRelationTestFactory.Create(
                revisionId, relatedObjectGUID, action);

            DyntaxaManager.CreateDyntaxaRevisionReferenceRelation(GetRevisionContext(), dyntaxaReferenceRelation);

            // Act
            referenceRelations = DyntaxaManager.GetAllDyntaxaRevisionReferenceRelations(
                GetRevisionContext(), revisionId);

            // Assert
            Assert.AreEqual(1, referenceRelations.Count);
        }