Tagged Questions
4
votes
6answers
294 views
Can the Strategy pattern be implemented without significant branching?
The Strategy pattern works well to avoid huge if...else constructs and make it easier to add or replace functionality. However, it still leaves one flaw in my opinion. It seems like in every ...
18
votes
6answers
625 views
Is dependency injection essential for unit testing?
Is using dependency injection (DI) essential for unit testing?
I can't think of another alternative for isolating code so it can be tested. Also, all the examples I have ever seen use this pattern. ...
0
votes
1answer
195 views
Implementing a ILogger interface to log data
I have a need to write data to file in one of my classes.
Obviously I will pass an interface into my class to decouple it.
I was thinking this interface will be used for testing and also in other ...
5
votes
4answers
145 views
Type mocking frameworks does not change coding practices from testability point?
Many people recommend that we should code against interfaces and avoid statics for testability.
Interfaces are not just for testability, they are sometimes a requirement. But sometimes we introduce ...
7
votes
5answers
639 views
What's the best way to build a factory using NInject?
I am pretty comfortable with dependency injection using NInject in MVC3. While working in an MVC3 application, I developed a custom Controller Creation Factory using NInject, so any controller that is ...
5
votes
4answers
298 views
How do you motivate your team colleagues to learn, use and apply best practices? [closed]
Possible Duplicate:
How do you motivate peers to become better developers?
How do you promote and how do you assure that in your new project best practices like unit testing, TDD, ...
7
votes
2answers
465 views
design pattern for unit testing?
I am beginner in developing test cases, and want to follow good patterns for developing test cases rather than following some person or company's specific ideas. Some people don't make test cases and ...