tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/477-is-it-okay-for-a-service-to-consume-a-modelRobotlegs: Discussion 2018-10-18T16:35:36Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/136452742012-02-13T09:50:33Z2012-02-13T09:50:57Zis it okay for a service to consume a model<div><p>The most flexible setup is if a command configures the service,
either by passing the necessary data to the method it's calling, or
by configuring the service upfront (this is my preferred
method).<br>
Injecting a config model isn't such a good idea, since it limits
the reusability of your service.</p></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/136452742012-02-13T11:30:17Z2012-02-13T11:30:18Zis it okay for a service to consume a model<div><p>It also limits the services' testability I too prefer
configuring service with a command upfront.</p></div>bulupetag:robotlegs.tenderapp.com,2009-10-18:Comment/136452742012-02-13T14:09:15Z2012-02-13T14:09:15Zis it okay for a service to consume a model<div><p>thanks, that helped :)</p></div>itsmylifesoham