tag:blogger.com,1999:blog-36201586.post8065717895449055698..comments2023-01-05T21:58:34.019+00:00Comments on Derek says:: Interfaces and IoCDerek Fowlerhttp://www.blogger.com/profile/09963865123124577525noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-36201586.post-87163525079974945992012-03-25T19:18:40.352+01:002012-03-25T19:18:40.352+01:00This has the same problem as renaming the interfac...This has the same problem as renaming the interface method. The main point was that not all dependencies have to be specified in terms of interfaces, sometimes it just doesn't make sense.<br /><br />For example, instead of an IOrderedLogRepository you could define an abstract OrderedLogRepository and then derive OrderedByDateLogRepository from that which specifies your ordering function and use that class as the dependency.Derek Fowlerhttps://www.blogger.com/profile/09963865123124577525noreply@blogger.comtag:blogger.com,1999:blog-36201586.post-14414816561699257112012-03-21T15:15:34.420+00:002012-03-21T15:15:34.420+00:00What about IOrderedLogRepository ? It makes the in...What about IOrderedLogRepository ? It makes the interface role explicitnaragahttps://www.blogger.com/profile/14068293829766895933noreply@blogger.com