Unit Testing a WCF RIA DomainService: Part 3, The DomainServiceTestHost

In this thrilling conclusion to my series on unit testing, I’ll show you how to use the DomainServiceTestHost to test your DomainServices. In parts one and two I showed you how to extract external dependencies using the IDomainServiceFactory and how to use the Repository Pattern. Now that all the groundwork is out of the way,…

14

Unit Testing a WCF RIA DomainService: Part 2, The Repository Pattern

This is part two in a series I’m writing about how to unit test your DomainServices. In part one, I discuss how you could use an IDomainServiceFactory to factor external dependencies out of your code.  Continuing along the same lines of thinking, I will use this post to discuss factoring out the database dependency as…

4

Unit Testing a WCF RIA DomainService: Part 1, The IDomainServiceFactory

I’ve always been a proponent of driving product quality through unit testing. Regardless of the specific testing methodology, I enjoy the confidence a rich suite of tests can bring to product and application development. For WCF RIA developers, I wanted to start a three-part series on how to test the business logic that resides at…

2

WCF RIA Services in Windows Azure AppFabric June CTP

If you’ve been using RIA in the cloud or are considering it, it is definitely worth your time to take a look at the Windows Azure AppFabric June CTP. The CTP is an early look at a platform that is positioned to simplify the development, deployment, and maintenance of applications in the cloud. We’ve made…

2

Writing a Custom CollectionViewLoader for the DomainCollectionView and MVVM

The question I’ve been fielding most lately is how to write a custom CollectionViewLoader. Once you see it done, it’s a pretty simple task. Without an example it’s hard to know where to start. In a previous post, I discussed how the view, loader, and source related to each other. In this post, I’ll show…

8

Survey: How Do You Use the DomainService Wizard?

I need to ask a favor of all my regular readers out there (*crickets*). I often hear stories along the lines of “I use the DomainService Wizard to generate my DomainService. Then I make tiny changes to the generated code or metadata and may move it or split it into separate files. Later, when I…

18

MVVM Pattern for RIA Services

At the Silverlight Firestarter ‘10, John Papa did a great talk on MVVM Patterns for Silverlight and WP7 that featured WCF RIA Services as the data layer. For that talk, I helped him streamline the service layer abstraction to correctly work with the RIA client. However, there were a number of great RIA features like…

13

DomainCollectionView Updates for Mix ‘11

To correspond to the new RIA Services build we’ve released at Mix, I’ve made some updates to the DomainCollectionView. I updated select API, fixed a few bugs, and updated the sample as well. If you’re not familiar with the DCV, here’s my original post introducing it. For the sake of brevity in this post, I’ll…

25

Using RIA Services with ComboBoxes and Enums

The other day someone asked me how to get a ComboBox working with enums and validation. It turned out to be more tricky than I had anticipated (there’s a common theme here…) so I figured I’d put together a quick post on it. Stumbling Points This section describes two specific traps I fell into. It’s…

8