NBuilder has two of the following fluent methods
.Has(..)
.Have(..)
eg.
return Builder<User>.CreateListOfSize(100)
.WhereTheFirst(1)
.Has(x => x.FirstName = "Jon Skeet")
.Build();
return Builder<User>.CreateListOfSize(100)
.WhereTheFirst(1)
.Have(x => x.FirstName = "Jon Skeet")
.Build();
I don’t understand the difference? Can someone please explain why I would do a Have instead of Has .. or vice versa?
They are identical. Full source code here.
Has:
Have: