예제 #1
0
 public CreatePersonCommand Build() =>
 BuilderHelper
 .InstantiateClass <CreatePersonCommand>()
 .SetPropertyValue(createPersonCommand => createPersonCommand.FirstName, _firstName)
 .SetPropertyValue(createPersonCommand => createPersonCommand.LastName, _lastName)
 .SetPropertyValue(createPersonCommand => createPersonCommand.CoffeePlaceIds, _coffeePlaceIds)
 .SetPropertyValue(createPersonCommand => createPersonCommand.EventRoomIds, _eventRoomIds);
 public EventRoom Build() =>
     BuilderHelper
         .InstantiateClass<EventRoom>()
         .SetPropertyValue(eventRoom => eventRoom.Id, _id)
         .SetPropertyValue(eventRoom => eventRoom.Name, _name)
         .SetPropertyValue(eventRoom => eventRoom.Capacity, _capacity)
         .SetPropertyValue(eventRoom => eventRoom.PersonEventRoomAssociations, _persons);
 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);
예제 #4
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);
예제 #7
0
 public CoffeePlace Build() =>
 BuilderHelper
 .InstantiateClass <CoffeePlace>()
 .SetPropertyValue(coffeePlace => coffeePlace.Id, _id)
 .SetPropertyValue(coffeePlace => coffeePlace.Name, _name)
 .SetPropertyValue(coffeePlace => coffeePlace.PersonCoffeePlaceAssociations, _persons);
예제 #8
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);