Author Archives: Duncan Butler

Unknown's avatar

About Duncan Butler

Trying to be a very agile software developer, working in C# with Specflow, Nunit and Machine Specifications, and in the evening having fun with Ruby and Rails

Real Test Driven Development – Thinking of Money 9

  First we need to set the update from within the engine [Test] public void Update() { _Engine.AddTransaction(10.10, "test category", "test description", DateTime.Now); Assert.IsTrue(_Engine.Update()); } public bool Update() { bool transFailed = false; foreach (MoneyTransaction moneyTransaction in _History) { if … Continue reading

Posted in Projects | Leave a comment

Real Test Driven Development – Thinking of Money 8

  so I now have an add and update, the delete will follow the same format, I have currently stored the connection string in a constant, but I suppose it can eventually be stored in an application setting. so for … Continue reading

Posted in Projects | Leave a comment

Real Test Driven Development – Thinking of Money 7

  The data layer I have thought and done some coding without tests, and have decided that I am going to put the code in a separate class, this will make it easier to refractor, and may be then I … Continue reading

Posted in Projects | Leave a comment

Real Test Driven Development – Thinking of Money 6

The data access layer:  We are going to be loading and saving transactions, so we are going to be testing adding and deleting transactions individually, each transaction should know how to add or delete itself, and also know what its … Continue reading

Posted in Projects | Leave a comment

Ruby in Visual Studio

  Now what I know about ruby you can put on the back of a postage stamp, but I am a bit of a language hound, and like to learn new stuff. I have been looking a ruby for a … Continue reading

Posted in Ruby | Leave a comment

Real Test Driven Development – Thinking of Money 5

  We now have a library that supply’s all the required functionality to  add, subtract and display a balance, also display the history of each transaction. we now need to decide how to save this data, I could simply serialize the … Continue reading

Posted in Projects | Leave a comment

First post of 2007

  Typical of me, I start ready to get down to some serious database stuff for the money engine, and did a quick check of the rss feeds to see what was new, and just had to take this test, … Continue reading

Posted in General Brain Dump | Leave a comment

Technorati

Technorati Profile   ok so I have joined the great world of spiders!! well I suppose it had to be done, you never know someone might actually read this rubbish 🙂  

Posted in Uncategorized | Leave a comment

Real Test Driven Development – Thinking of Money 4

  The history functions, I was going to have two collections one for additions and one for subtractions, but in reality I think we can get away with only one and allow the interface code to decide how to display … Continue reading

Posted in Projects | Leave a comment

Real Test Driven Development – Thinking of Money 3

  We now have an object to store each transaction, this will also allow us to display each transaction, so next we have to do the add, and then subtract, these should also update the balance.  Once we have done … Continue reading

Posted in Projects | Leave a comment