Esempio n. 1
0
        /// <summary>
        /// Creates the provenance.
        /// </summary>
        /// <param name="taggedDataElement">The tagged data element.</param>
        /// <param name="signedTimestamp">The signed timestamp.</param>
        /// <returns>
        /// A provenance.
        /// </returns>
        public Provenance CreateProvenance(TaggedDataElement taggedDataElement, DateTimeOffset signedTimestamp)
        {
            var provenance = new Provenance(taggedDataElement, signedTimestamp);

            _provenanceRepository.MakePersistent(provenance);
            return(provenance);
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Provenance"/> class.
        /// </summary>
        /// <param name="taggedDataElement">The tagged data element.</param>
        /// <param name="signedTimestamp">The signed timestamp.</param>
        public Provenance(TaggedDataElement taggedDataElement, DateTimeOffset signedTimestamp)
        {
            Check.IsNotNull(taggedDataElement, () => TaggedDataElement);
            Check.IsNotNull(signedTimestamp, () => SignedTimestamp);

            TaggedDataElement = taggedDataElement;
            SignedTimestamp   = signedTimestamp;
        }
Esempio n. 3
0
        /// <summary>
        /// Revises the tagged data element.
        /// </summary>
        /// <param name="taggedDataElement">The tagged data element.</param>
        public virtual void ReviseTaggedDataElement(TaggedDataElement taggedDataElement)
        {
            Check.IsNotNull(taggedDataElement, () => TaggedDataElement);

            TaggedDataElement = taggedDataElement;
        }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RepresentedOrganization"/> class.
 /// </summary>
 /// <param name="organizationTaggedDataElement">The organization tagged data element.</param>
 /// <param name="organizationName">Name of the organization.</param>
 /// <param name="phone">The phone.</param>
 public RepresentedOrganization(TaggedDataElement organizationTaggedDataElement, string organizationName, Phone phone)
 {
     OrganizationTaggedDataElement = organizationTaggedDataElement;
     OrganizationName = organizationName;
     Phone            = phone;
 }