July 2006 Entries

Even simpler Database Unit Testing with TransactionScope

Technorati Tags: TDD,Database Testing Roy Osherove has a well read article explaining how to use Enterprise Services to do database testing.  This is a pretty nice solution but if you are using .Net 2  then there is an even simpler way:  Using System.Transactions.TransactionScope. Some background: When you unit test code that is making changes to a database you want a way to ensure that the database remains consistent between tests.  One way to do that is to wrap the work in a transaction and then roll it back after the test is done. If you are using...

Atlas is not just the UpdatePanel! - Here's a simple Atlas Client Script example to prove it!

Most of the examples you see out there regarding Atlas involve wrapping the UpdatePanel around something, adding some triggers and seeing the magic. That is great, but Atlas has more to offer than that because it offers a 1)whole client side framework that makes writing on the client so much nicer for those of you coming from a .net background and 2)Control Extenders that make your server side controls perform client side magic.  Heres an example of the client stuff.  For more information on the control extenders checkout the toolkit. Creating a Page to Display a Random Quote Lets say you have...

GPS Sample update

Technorati Tags: windows mobile,gps In my previous blog (yes I know it's been a while!) I mentioned that there is a bug in the MSDN GPS sample for windows mobile. Turns out that is not the end of the story. There is a further bug relating to the way the code deals with degrees when the longitude or latitude is -0.xxx which requires a refactoring to sort out.  The refactoring essential needs to make sure the DegreesMinutesSeconds class returns whether the Degrees element is negative.  If anyone wants the code let me know. In addition to...

«July»
SunMonTueWedThuFriSat
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345