Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Services   (RSS)

Faking The Windows Azure Table Service

When presented with a new technology, one of my primary evaluation criteria is its testability, so it should come as no surprise to the regular reader of this blog that this was also foremost in my mind when Windows Azure was presented at PDC. Much of
Posted by ploeh | 1 Comments
Filed under: ,

A General-Purpose Fake ADO.NET Data Service

In my previous post , I discussed how to implement a Fake ADO.NET Data Service for use with unit testing, showing how you can develop a one-off service that addresses specific needs, such as querying parents and children in the example. As I hinted in
Posted by ploeh | 2 Comments
Filed under: ,

Attachment(s): DataServicesQualityTools.zip

Creating A Fake ADO.NET Data Service

Previously , I discussed unit testing ADO.NET Data Service clients using a Fake ADO.NET Data Service, and I promised to demonstrate how to create such a service. In this article I will continue the previous example and implement the Fake MyService class.
Posted by ploeh | 1 Comments
Filed under: ,

Attachment(s): DataServiceTesting.zip

Unit Testing ADO.NET Data Service Clients

In my previous post , I discussed unit testing ADO.NET Data Services and how you can host and test the service itself. In this post, I'll take a look at the opposite scenario: You have a client of an ADO.NET Data Service, and you want to unit test the
Posted by ploeh | 2 Comments
Filed under: ,

Unit Testing ADO.NET Data Services

ADO.NET Data Services enables you to expose data (including, but not limited to, relational data) as REST services. Since it's built on top of WCF, it can be tested utilizing similar techniques , but allow me to elaborate a bit on the subject. As with
Posted by ploeh | 1 Comments
Filed under: ,

Creating Azure Tables From Script

When working with the Windows Azure Storage service, you must create the tables before you can use them; in essence, defining the 'schema' of your Azure storage service. On his blog, Steve Marx writes : "Probably the best solution is to have separate
Posted by ploeh | 3 Comments
Filed under:

UAC Privileges Flow Across WCF Boundaries

Today, I just spent an entire afternoon troubleshooting a problem in one of my WCF services. When the solution finally dawned on me, it was so simple that I wanted to kick myself, so I thought that by sharing my experience, I might spare you the agony.
Posted by ploeh | 2 Comments
Filed under:

N-Tier Synchronization With The Sync Framework And WCF ChannelFactory (Part 2)

In my previous post , I discussed using ServerSyncProviderProxy with ChannelFactory<T> , and explained how you can get up and running with that combination. While the described modification is definitely necessary, there's at least one other caveat
Posted by ploeh | 1 Comments
Filed under:

N-Tier Synchronization With The Sync Framework And WCF ChannelFactory (Part 1)

Sync Services for ADO.NET 2.0 allows a proper n-tier architecture where you can synchronize a client with a back-end data store via a web service. To do this, your web service must expose a simple interface consisting of four operations. As described
Posted by ploeh | 1 Comments
Filed under:

An Overview of Unit Testing Duplex WCF Services and Clients

In the last couple of posts, I've demonstrated how to isolate implementation from WCF contract definition and behavior in a duplex communication scenario. These posts have been rather detailed, so it occurred to me that you might benefit from an overview.

Unit Testing Duplex WCF Clients

In my previous post , I explained how to unit test a WCF service with callbacks. Since the scenario involves duplex communication, the service is also a client, and vice versa, so it's only reasonable to look at the 'client' as well, to examine how to

Unit Testing Duplex WCF Services

One of my readers recently asked me about unit testing WCF services when they have callbacks. Given that I strongly believe that you should attempt to implement your services without referencing WCF at all , but duplex WCF services require you to get
Posted by ploeh | 5 Comments
Filed under: ,

Modifying Behavior of WCF-Free Service Implementations

In my previous post , I explained how to implement a WCF service without referencing WCF. In simple cases, it works as described, but you may soon find yourself in a situation where you need to modify the behavior of the service when it's hosted by WCF.
Posted by ploeh | 2 Comments

Implementing WCF Services Without Referencing WCF

More than a year ago, I wrote my first post on unit testing WCF services . One of my points back then was that you have to be careful that the service implementation doesn't use any of the services provided by the WCF runtime environment (if you want
Posted by ploeh | 4 Comments
Filed under: ,

Declarative Use of Custom SecurityTokenParameters

It's not the first time I've stated this, but one of the reasons I love WCF is that it's so wonderfully extensible. You can even implement your own custom security token, as this article explains . The only problem with this article is that it uses imperative
Posted by ploeh | 5 Comments
Filed under:
More Posts Next page »
 
Page view tracker