-
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
Category Archives: Projects
Real Test Driven Development – Thinking of Money 14
right so we now need to display the balance, this is quite simple as we have a text box that is set to read only, and the balance is available form the engine, now we could add this balance … Continue reading
Posted in Projects
Leave a comment
Real Test Driven Development – Thinking of Money 13
OK so I have tested the binding, and made sure that what I thought might work did, transferring this to our formal code means we need a way to test it as close to the interface as possible, personally I … Continue reading
Posted in Projects
Leave a comment
Real Test Driven Development – Thinking of Money 12
It took a while to figure out correctly but by adding the grid to the form and opening the data grid view task, I selected the object data source and then clicked next, ok so we want to display money engine transactions, … Continue reading
Posted in Projects
Leave a comment
Real Test Driven Development – Thinking of Money 11
ok so using expression seams more problematic that I thought, so for this iteration I decided to use a simple windows form, this will allow me to think about what elements I want, and how I am going to … Continue reading
Posted in Projects
Leave a comment
Real Test Driven Development – Thinking of Money 10
Oh heck here I am, all the background is developed, now comes for me the difficult bit. the user interface, I really want to develop this in WPF, just because its new and I am working on a vista … Continue reading
Posted in Projects
Leave a comment
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
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