Skip to content

Commit 627744f

Browse files
authored
fix(OrderArbitrarySteps): nullability of properties (#23)
1 parent a96ca7a commit 627744f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/ExampleProject/OrderArbitrarySteps.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ public class Order2
1414
{
1515
[FluentMember(0)]
1616
[FluentContinueWith(0)]
17-
public int Number { get; private set; }
17+
public int? Number { get; private set; }
1818

1919
[FluentMember(0, "{Name}")]
2020
[FluentContinueWith(0)]
21-
public DateTime CreatedOn { get; private set; }
21+
public DateTime? CreatedOn { get; private set; }
2222

2323
[FluentLambda(0, "ShippedTo")]
2424
[FluentContinueWith(0)]
25-
public Address2 ShippingAddress { get; private set; }
25+
public Address2? ShippingAddress { get; private set; }
2626

2727
[FluentMethod(0)]
2828
private void Build()
@@ -56,6 +56,10 @@ public class Address2
5656
[FluentMethod(0)]
5757
private void Build()
5858
{
59+
Street ??= "N/A";
60+
City ??= "N/A";
61+
Zip ??= "N/A";
5962
State ??= "N/A";
63+
Country ??= "N/A";
6064
}
6165
}

0 commit comments

Comments
 (0)