PAD Files..?

by Paul 1/28/2007 9:22:33 PM

I have not messed around with this too much but I have registered my PAD (Portable Application Description) file for the Verse Popper with www.asp-shareware.org... Looks like I have a bit more work to do but setting up a PAD file is easy and makes submitting your software to a "download site" very quick.

The actual Verse Popper PAD file is here:

http://www.pksoftware.net/VersePopper/pad_file.xml

The ASP Shareware rendering looks like this:

http://www.asp-shareware.org/pad/showinfo.asp?xmlfile=http://www.pksoftware.net/versepopper/PAD_FILE.xml

Bit ugly I thought!! I need to work out if there is any benifit to the end user seeing this or if its just so generic it puts them off...

Great Post on Orthogonal Code

by Paul 1/13/2007 12:26:48 AM

Jeremy Miller has put together a great post on Orthogonal Code - I must admit, I used to code like that! Lucky we can learn and move on... well worth the read.

http://codebetter.com/blogs/jeremy.miller/archive/2007/01/08/Orthogonal-Code.aspx

Simple Rollback for Database Unit Testing

by Paul 1/9/2007 11:50:19 PM

At some point in the unit testing game you will need to tackle the unpleasant task of actually coding and running unit tests on the data access code. This in itself can open a bit of a can of worms - the bigger the database, the more worms you need to deal with. If you want a quick solution to being able to run a bunch of data access tests that insert, update and delete data in tables - try putting a TransactionScope object at the test fixture level. If the scope is not committed the changes are not stored, perfect scenario for a group of unit tests.

Marcus Rosen prompted the idea and I have been using this technique against a local copy of an MSSQL database and have had no issues to date. It has simplified the development process in that data does not keep disappearing due to my unit tests clearing tables and inserting test items.

I have seen "Rollback" attributes around (such as http://weblogs.asp.net/rosherove/archive/2004/10/05/238201.aspx) but the above solution is a one liner and requires no new libraries, and integration etc.

I like a simple solution  ;-)


MSDN TransacrionScope Help:
http://msdn2.microsoft.com/en-us/library/system.transactions.transactionscope.aspx

Powered by BlogEngine.NET 1.3.1.0
Theme by Mads Kristensen

About the author

Paul Kohler Paul Kohler
A .NET software developer living and working in Brisbane, Australia.

PK Software
E-mail me Send mail

Calendar

<<  August 2008  >>
MoTuWeThFrSaSu
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008