Custom WCF Authorization using ServiceAuthorizationManager

I was recently tasked with implementing authentication and authorization in an existing WCF-based service using Windows Live ID. The service already had an extensive set of BVT tests that I didn’t necessarily want to break. Integrating Live ID authentication in our service tests would require some additional code modifications and require another pass through those…

0

UI Automation in Silverlight – Part II (The Easy Way)

So, I wrote a blog post a bit earlier on exposing custom controls for accessibility and automation in Silverlight. If you’re only interested in the automation perspective and the Silverlight unit testing framework doesn’t quite suit your needs, then there’s an easier way than going out and implementing AutomationPeer types.   As of Silverlight Beta 2,…

7

UI Automation in Silverlight – Simulating User Interactions

I was recently tasked with automating Silverlight Rich Internet Applications (RIAs) in our immediate group. Some tools out there provide limited assistance in this regard; for example, you can write unit tests against your Silverlight controls for in-proc testing. You can read more about that approach here: http://www.jeff.wilcox.name/2008/03/31/silverlight2-unit-testing/   Unfortunately, my requirement is to enable…

11

LINQ to SQL: Optimizing DataContext construction with the factory pattern

In the context of building out a web application, the corresponding DataContext is meant to be built out several times. The application’s DataContext is constructed, some sort of data retrieval or manipulation is done, and then the DataContext goes out of scope. This operation will most likely be done several, several times throughout common user…

6

LINQ to SQL: Performance and Security

Like many people around the office, I’ve spent the last several weeks being completely enamored with LINQ. It started out innocently enough with a link to Joseph Albahari’s LINQPad and it just took off from there. I’m pleased to say that it has pretty much replaced SQL Management Studio for my purposes. And as an added…

4