/// <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); }
/// <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; }
/// <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; }
/// <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; }