// Arrange Act Assert

Jag Reehal on Agile Development, ASP.NET MVC, Silverlight and all manner of good stuff


Code First Entity Framework Unit Test Examples

Following the release of the Entity Framework 4 CTP 4 and Scott Gu’s excellent blog post about Code-First Development with Entity Framework 4, we’ll be having a look at what your Code-First Entity Framework unit tests might look like. The code used in this post is available here. Remember in order to run the code [...]

Using INotifyDataErrorInfo for validation in MVVM with Silverlight

In this post we will be looking at how validation can be done by implementing the INotifyDataErrorInfo interface for a calculator we have been building as part of the Silverlight refactoring series. Like the IDataErrorInfo interface, the INotifyDataErrorInfo interface gives you the ability to do validation without throwing exceptions. The full solution for this post [...]

Using IDataErrorInfo for validation in MVVM with Silverlight and WPF

In this post we will be looking at how validation can be done by implementing the IDataErrorInfo interface for a calculator we have been building as part of the Silverlight refactoring series. The IDataErrorInfo interface gives you the ability to do validation without throwing exceptions. The full solution for this post can be downloaded here. [...]

Enabling buttons in Silverlight and WPF using MVVM and ValidatesOnExceptions

In a previous post we saw how exceptions could be used for Silverlight validation. While could validate the users input using exceptions, it wasn’t possible to disable the calculate button if the input values were invalid (because they were either blank or non-numeric). The code used in this post can be downloaded here. So how [...]

Validation in Silverlight and WPF using ValidatesOnExceptions

With the application as it is the user is able to enter non-numeric values and add them together. Clicking the calculate button to add two non-numeric values together will cause the application to do nothing and the user will have no idea why. Try it for yourself here. It would be common sense to validate [...]