Commit b89dac3
committed
Makes the Set function on NTestDataBuilder fluent
I've noticed we're writing a lot of boiler plate in our derived builders, things that just forward to Set and return themselves. This changes the Set method provided by the base class to be a fluent interface. This allows each of the provided functions in your derived builder class to be ones which have some extra constraints they need to enforce (uniqueness, formatting, whatever) and reduces boiler plate when it doesn't matter.1 parent a803219 commit b89dac3
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments