triton-tek

Solutions Clients Case Studies About Us Blog Contact
SharePoint Mobile E-Commerce Custom Development Hosting Solutions Internet Strategy

Tag Archives: unit testing

DateTime.Now is not [deterministically] testable

Unit testing a method that relies on DateTime.Now is generally a challenge. Take the below example, which was the first version of a method to get the Current Price of a Product. The business rule for GetCurrentPrice() is simple: find … Continue reading

Posted in Custom Development | Tagged | Leave a comment
Powerful Solutions. Empowering Results.