Standard behavior of ToString is to print class or structure name. Sometimes if you never need to call tostring for class in application you will avoid to override this basic behavior. Suppose you have this simple structure. public struct Range { public Int32 Left; public Int32 Rigth; This is a simple structure with two field, [...]
Continue reading about The importance of overriding ToString for tests
I have an application where I do a lot of search for pattern in text and I use a lot of regular expression. The program runs well, until the amount of text it has to search into is grown tremendously. It reaches a point where the standard daily task that was completed in a couple [...]
When I decided to write down a little class to manage a menu, I created a simple object that reads the menu data in xml, and transform it into a series of MenuItem object. The first thing I wanted to do is writing some test to verify that the logic is ok, but since my [...]
Continue reading about Decouple controllers and other objects from context in asp.net mvc
jQuery has really a lot of interesting plugins, but the one I like most is a template engine called jtemplates. Basically it consist of a jQuery extension that is capable of rendering html with javascript on client machine. You really have a lot of flexibility on how to specify a template, basically you can embed [...]
Continue reading about Asp.net Mvc plus jQuery client template engine .. have fun with them
I have a simple wcf service hosted in IIS6, when I launch serviceutil.exe (svcutil.exe http://10.8.50.1:7507/FileReceiver.svc?wsdl) to create a proxy I get a complex and long error, but the first part of the error tells me Error: Cannot obtain Metadata from http://10.8.50.1:7507/FileReceiver.svc?wsdl I lost about half an hour triying to figure out what is wrong. First [...]
