コード例 #1
0
        public void RequiredFieldNotDeclaredFirst()
        {
            ReqAndHierL1 value = ReqAndHierL1.Create("value2");

            Assert.Null(value.L1Field1);
            Assert.Equal("value2", value.L1Field2);
        }
コード例 #2
0
 public ReqAndHierL1 ToReqAndHierL1()
 {
     return(ReqAndHierL1.CreateWithIdentity(
                l1Field1: Optional.For(this.L1Field1),
                l1Field2: this.L1Field2,
                identity: this.Identity));
 }
コード例 #3
0
            internal Builder(ReqAndHierL1 immutable)
            {
                this.immutable = immutable;

                this.l1Field1 = immutable.L1Field1;
                this.l1Field2 = immutable.L1Field2;
            }
コード例 #4
0
 public ReqAndHierL1 ToReqAndHierL1()
 {
     return(ReqAndHierL1.Create(
                l1Field1: this.L1Field1,
                l1Field2: this.L1Field2));
 }
コード例 #5
0
 public ReqAndHierL1 ToImmutable()
 {
     return(this.immutable = this.immutable.With(
                ImmutableObjectGraph.Optional.For(this.L1Field1),
                ImmutableObjectGraph.Optional.For(this.L1Field2)));
 }