Sometimes we have an object which requires a Web server response to work properly. How are we gonna unit test it? Do we need an actual Web server returning all the responses we want for testing? Apparently we don’t because in .NET we can associate our requests with particular responses using WebRequest.RegisterPrefix
Continue reading “Unit Testing .NET Code That Requires Web Server Responses”Breaking Bad: Liskov’s Substitution Principle (LSP) violation
Recently I was watching a very nice explanation of LSP on Christopher Okhravi’s YouTube channel. After approximately five minutes of watching this video I wanted to know one thing: how can I actually break it?
Because, you know, breaking things when you learn gives you better understanding of how they work. Am I right?
Continue reading “Breaking Bad: Liskov’s Substitution Principle (LSP) violation”FooBar or FizzBuzz Discombobulation
I saw many programmers creating tutorials for other programmers using these short and funny names for functions, classes, methods etc. I would consider it as a bad practice in general.
Let me explain why.
Continue reading “FooBar or FizzBuzz Discombobulation”