public PfrLetterType(Urn urn)
 {
     this.urn = urn ?? throw new ArgumentNullException(nameof(urn));
     if (!Namespace.IsParentOf(urn))
     {
         throw Errors.UrnDoesNotBelongToNamespace(nameof(urn), urn, Namespace);
     }
 }
 public DocflowExtendedStatus(Urn urn)
 {
     this.urn = urn ?? throw new ArgumentNullException(nameof(urn));
     if (!Namespace.IsParentOf(urn))
     {
         throw Errors.UrnDoesNotBelongToNamespace(nameof(urn), urn, Namespace);
     }
 }
Beispiel #3
0
 public void HaveCorrectParentalMethods()
 {
     urnParent.IsParentOf(urnChild).Should().BeTrue();
     urnParent.IsChildOf(urnChild).Should().BeFalse();
     urn.IsParentOf(urnParent).Should().BeFalse();
     urn.IsChildOf(urnParent).Should().BeFalse();
     urn.CreateChild("child").IsChildOf(urn).Should().BeTrue();
 }