コード例 #1
0
 public void On(MovedEvent @event)
 {
     State.Location = new Location
     {
         Address   = @event.Address,
         DateMoved = @event.DateMoved
     };
 }
コード例 #2
0
        public MovedEvent Move(MoveCommand command)
        {
            var movedEvent = new MovedEvent
            {
                Address   = command.Address,
                DateMoved = command.DateMoved
            };

            On(movedEvent);

            return(movedEvent);
        }