public UpdatePersonCommand Build() =>
 BuilderHelper
 .InstantiateClass <UpdatePersonCommand>()
 .SetPropertyValue(updatePersonCommand => updatePersonCommand.PersonId, _personId)
 .SetPropertyValue(updatePersonCommand => updatePersonCommand.FirstName, _firstName)
 .SetPropertyValue(updatePersonCommand => updatePersonCommand.LastName, _lastName)
 .SetPropertyValue(updatePersonCommand => updatePersonCommand.CoffeePlaceIds, _coffeePlaceIds)
 .SetPropertyValue(updatePersonCommand => updatePersonCommand.EventRoomIds, _eventRoomIds);
Пример #2
0
 public Person Build() =>
 BuilderHelper
 .InstantiateClass <Person>()
 .SetPropertyValue(coffeePlace => coffeePlace.Id, _id)
 .SetPropertyValue(coffeePlace => coffeePlace.FirstName, _firstName)
 .SetPropertyValue(coffeePlace => coffeePlace.LastName, _lastName)
 .SetPropertyValue(coffeePlace => coffeePlace.PersonCoffeePlaceAssociations, _coffeePlaces)
 .SetPropertyValue(coffeePlace => coffeePlace.PersonEventRoomAssociations, _eventRooms);
 public CreateCoffeePlaceCommand Build() =>
 BuilderHelper
 .InstantiateClass <CreateCoffeePlaceCommand>()
 .SetPropertyValue(createCoffeePlaceCommand => createCoffeePlaceCommand.Name, _name);
 public UpdateCoffeePlaceCommand Build() =>
 BuilderHelper
 .InstantiateClass <UpdateCoffeePlaceCommand>()
 .SetPropertyValue(updateCoffeePlaceCommand => updateCoffeePlaceCommand.CoffeePlaceId, _coffeePlaceId)
 .SetPropertyValue(updateCoffeePlaceCommand => updateCoffeePlaceCommand.Name, _name);
Пример #5
0
 public CoffeePlace Build() =>
 BuilderHelper
 .InstantiateClass <CoffeePlace>()
 .SetPropertyValue(coffeePlace => coffeePlace.Id, _id)
 .SetPropertyValue(coffeePlace => coffeePlace.Name, _name)
 .SetPropertyValue(coffeePlace => coffeePlace.PersonCoffeePlaceAssociations, _persons);
Пример #6
0
 public UpdateEventRoomCommand Build() =>
 BuilderHelper
 .InstantiateClass <UpdateEventRoomCommand>()
 .SetPropertyValue(updateEventRoomCommand => updateEventRoomCommand.EventRoomId, _eventRoomId)
 .SetPropertyValue(updateEventRoomCommand => updateEventRoomCommand.Name, _name)
 .SetPropertyValue(updateEventRoomCommand => updateEventRoomCommand.Capacity, _capacity);
 public CreateEventRoomCommand Build() =>
 BuilderHelper
 .InstantiateClass <CreateEventRoomCommand>()
 .SetPropertyValue(createEventRoomCommand => createEventRoomCommand.Name, _name)
 .SetPropertyValue(createEventRoomCommand => createEventRoomCommand.Capacity, _capacity);