New Posts New Posts RSS Feed: Interfaces on ViewModels
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Interfaces on ViewModels

 Post Reply Post Reply
Author
JohnBloom View Drop Down
Groupie
Groupie
Avatar

Joined: 30-Nov-2010
Location: Topeka, KS
Posts: 95
Post Options Post Options   Quote JohnBloom Quote  Post ReplyReply Direct Link To This Post Topic: Interfaces on ViewModels
    Posted: 15-Mar-2012 at 7:11am
I remember an example project that I checked out back when Cocktail was the DAF that used interfaces to import ViewModels. In the TempHire application it seems that you guys have moved away from that.
Do you have any recomendation one way or the other?
-John Bloom
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post Posted: 15-Mar-2012 at 11:11am
Interfaces make sense if you expect to have different implementations. For ViewModels that's generally unlikely. ViewModels typically don't need to be fake for testing for example. Repositories etc. on the other hand will often be fake during testing and therefore should be imported via interfaces.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down