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