Created
November 21, 2019 21:59
-
-
Save AriPal/1a4899e3278e00ccb1c276dbb8b93147 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var builder = new Builder<PlaneContext>(); | |
builder.AddPlane(plane => plane.Name = "Boeng 720") | |
.AddClass(class => class.Name = "VIP") | |
.addPassenger(passenger => passenger.Name = "Bjørn Harald Vognhild-Olsen") | |
.addPassenger(passenger => passenger.Name = "John Doe") | |
.AddClass(class => class.Name = "Economy") | |
.addPassenger(passenger => passenger.Name = "Robert") | |
.addPassenger(passenger => passenger.Name = "Johanne"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment