July 2006 Entries
OEM PC's usally comes with a lot of crap on them, if you (like me) don't like that, check out this tool: The PC De-Crapifier
Seems awsome!
Right now I'm reading a, so far, good article on the MVP pattern. The article Model View Presenter at MSDN Mag. The author is taking a TDD approach and the first test he writes looks like this:
[Test]
publicvoid ShouldLoadListOfCustomersOnInitialize()
{
mockery = new Mockery();
ICustomerTask mockCustomerTask =
mockery.NewMock<ICustomerTask>();
IViewCustomerView mockViewCustomerView =
mockery.NewMock<IViewCustomerView>();
ILookupList mockCustomerLookupList =
mockery.NewMock<ILookupList>();
ViewCustomerPresenter presenter =
...
Quite a while ago I wrote a post about Obvious API's. To solve that problem I "Cloned" an XmlDocument object by creating a new and inserting the xml string from the original object. I was not at all satisfied with that solution but with a deadline around the corner and a working solution. Hey what can I say, I left it that way.
XmlDocument xmlDoc =new XmlDocument();
xmlDoc.LoadXml(xmlDocIn.OuterXml);
Just the other day I was fooling around with .Net Framework 2.0 and needed to clone an object that didn't expose a clone method and that I had not written my self. So after...