Being Cellfish

Stuff I wished I've found in some blog (and sometimes did)

CCR tips and tricks - part 1

Change of Address
This blog has moved to blog.cellfish.se.

CCR tips and tricks - part 1

  • Comments 1

Since I practice TDD it's important to have a good way to test my CCR based code. The first problem to solve then is to call CCR code which is asynchronous in nature from a unit test that is very synchronous in its nature. The way I've ended up is to use a PortUtility class that have synchronous versions of two very common CCR methods; Choice and Receive. Since my unit tests also should execute very fast I have a short default timeout so that I know that my tests don't hang around for too long. Attached is a file implementing the PortUtility class that will be used in future CCR tips and tricks.

UPDATE: If you like this, you probably love part 25.

Attachment: PortUtility.cs
  • In the very first CCR tips and tricks I gave you a utility to essentially make CCR code synchronous to

Page 1 of 1 (1 items)