Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

Monthly Archives: December 2007

Database refactoring, or "How to remove a schema"

Welcome back, revolutionaries! We’ve had a small reprieve from the fight to let our early anarchy settle in and—….y’know what. The revolutionary jargon is getting too hard to write and the refactorings more involved so I’ll just throw out a … Continue reading 

Posted in Refactoring, Utilities | Leave a comment

MbUnit fixtures, or "How to make your tests pass through attribute attrition"

using MbUnit.Framework; using Rhino.Mocks; namespace Suvius.Applications.LoveDoctor.Tests { public class CritterFixationFixture { private ISpeciesSelectorPresenterView view; private MockRepository mocks; private SpeciesSelectorPresenter presenter; [ SetUp ] public void SetUp( ) { mocks = new MockRepository( ); view = mocks.DynamicMock<ISpeciesSelectorPresenterView>( ); presenter = new … Continue reading 

Posted in MbUnit, TDD | 4 Comments

Removing #regions, or "How to keep your code expanded"

In a couple of recent posts, I’ve all but declared war on #regions. I’m not going to regurgitate my reasons but for those of you who go into "you won’t like me when I’m angry" mode when they see a … Continue reading 

Posted in Coding Style, ReSharper | 26 Comments

ClassTester, or "How to exercise your assembly"

Fear not, brethren and…uhhh….sistren. The resistance is still alive. But the revolutionary jargon will get in the way here so I’m reverting to a more traditional means of expression. Among the things we’ve implemented as part of our project clean-up … Continue reading 

Posted in Refactoring, Utilities | 4 Comments

Test SetUp Methods, or "How to make yourself public"

Here’s a little sidebar that I bet you didn’t know. Actually, that was probably more accurate at my old site where my readership measured on a more, shall we say, intimate, scale. Anyway, I recently converted a project from NUnit … Continue reading 

Posted in Refactoring, TDD | 3 Comments

Refactoring by rote, or "How to have a ReSharper Orgy!"

Greetings brothers and sisters and solidarity to you. The revolution is off to a rousing start. We have integrated continuously and Comrade Marc Davis has won a key early victory by excising the putrid web service that so fiendishly guarded … Continue reading 

Posted in Refactoring | 4 Comments

Guerrilla refactoring, or "How to bring down a totalitarian regime"

Have started a new project at the current contract and I’m muy excited about it. It’s a "legacy" .NET 1.1 app that was upgraded to 2.0 by running the wizard, then left alone. It has a web service created by … Continue reading 

Posted in Featured, Refactoring | 18 Comments

The CodeBetter Hillbilly, or "How to build a better banjo"

The Coding Hillbilly has been called up to the Show! Seems the members of CodeBetter are serious about the "alternative" part of ALT.NET and thus, I have myself a new home. And hoo-ee, wouldja lookit the size o’ this place! … Continue reading 

Posted in Uncategorized | 6 Comments