Objects have dependencies. Methods don't

Posted by: Jeffrey Palermo, on 11 Mar 2008 | View original | Bookmarked: 0 time(s)

There is quite a bit of talk lately about unit testing using the extract method and override, or "inherit & override" method for stubbing out a method for unit testing.  Methods don't have dependencies, and methods aren't dependencies. Objects are dependencies, and object have dependencies.  One object will depend on another object.  Objects are cohesive and present a contract of behavior so other objects know what behavior they can reliably leverage.  Because...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Refactor | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 925 | Hits: 20

Similar Posts

  • Principles, Patterns, and Practices of Mediocre Programming more
  • Lucene.net: your first application more
  • OMG, where do I start? more
  • How do ASP.NET Application_ Events Work more
  • MAB ContainerModel / Funq: a transparent container more
  • ALT.NET Mean How do we fix it? more
  • The Friend of a Friend Plug-In for Graffiti more
  • EntityObject Class Constructors more
  • Asynchronous Fire and Forget With Lambdas more
  • Units of Work more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD