Generating random numbers within SELECT queries in SQL Server 2005

by Dominic Zukiewicz 23. July 2008 09:06
I was generating some test data and tried to use the RAND() function to query data. When trying this out on the Northwind database, it returned with the following result: SELECT LastName, RAND() from Employees   LastName (No column name) Buchanan 0.747783 Callahan 0.747783 Davolio 0.747783 Dodsworth 0.747783 Ful... [More]

Tags:

Testing

Mock objects - testing your classes without test data!

by Dominic Zukiewicz 21. July 2008 12:14
After a trip to London to visit one of my friends who works for Rightmove -  the UK's No 1 Online Housing Site and we (we meaning I) got into talking about the ways we test our code. He told me that they started to use a Test Driven Development methodology. When testing in a development environment, their test framework used something called "mock objects" - these are objects that simulate behaviour, but in reality, don't do anything! I was intrigued.... Background One of the drawback of the development process, especially with Test Driven Development, is that there comes a stage when a larg... [More]

Tags:

Testing

Powered by BlogEngine.NET 1.5.0.7
Theme by Interakting

Interakting

A full service digital agency offering online strategy, design and usability, systems integration and online marketing services that deliver real business benefits and ensure your online objectives are met.

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar