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