Exemplo n.º 1
0
		public MovedEvent Move(MoveCommand command)
		{
			var movedEvent = new MovedEvent
			{
				Address = command.Address,
				DateMoved = command.DateMoved
			};

			On(movedEvent);

			return movedEvent;
		}
Exemplo n.º 2
0
		public void On(MovedEvent @event)
		{
			State.Location = new Location(@event.Address, @event.DateMoved);
		}