public void RequiredFieldNotDeclaredFirst() { ReqAndHierL1 value = ReqAndHierL1.Create("value2"); Assert.Null(value.L1Field1); Assert.Equal("value2", value.L1Field2); }
public ReqAndHierL1 ToReqAndHierL1() { return(ReqAndHierL1.CreateWithIdentity( l1Field1: Optional.For(this.L1Field1), l1Field2: this.L1Field2, identity: this.Identity)); }
internal Builder(ReqAndHierL1 immutable) { this.immutable = immutable; this.l1Field1 = immutable.L1Field1; this.l1Field2 = immutable.L1Field2; }
public ReqAndHierL1 ToReqAndHierL1() { return(ReqAndHierL1.Create( l1Field1: this.L1Field1, l1Field2: this.L1Field2)); }
public ReqAndHierL1 ToImmutable() { return(this.immutable = this.immutable.With( ImmutableObjectGraph.Optional.For(this.L1Field1), ImmutableObjectGraph.Optional.For(this.L1Field2))); }