public LocationCreated When(CreateLocation command) { var locationCreated = new LocationCreated(command.Location, command.Description); this.Then(locationCreated); return(locationCreated); }
protected LocationCreated Then(LocationCreated stateChange) { this.location = stateChange.Location; return(stateChange); }