-
Recent Posts
December 2025 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Archives
- August 2025
- July 2025
- June 2025
- April 2025
- December 2023
- March 2023
- September 2022
- June 2016
- August 2014
- May 2014
- April 2014
- April 2013
- January 2013
- November 2012
- September 2012
- April 2012
- January 2012
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- May 2010
- March 2010
- December 2009
- November 2009
- October 2009
- February 2009
- January 2009
- August 2008
- June 2008
- May 2008
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- July 2006
- April 2006
- March 2006
- February 2006
- January 2006
Meta
Author Archives: Duncan Butler
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