I'm developing a new C# 3.5 app that needs to monitor an Exchange mailbox and perform some operations when emails are received. I'm aware that Microsoft now recommends using Exchange Web Services to perform operations on Exchange servers so I've decided to use that.
I also found the Exchange Web Services Managed API (using version 1.2.1) which definitely seems to make the task of calling these web services much easier.
My question is, does anyone have any experience in creating automated unit/integration tests using the Managed API?
At the moment I have no Exchange server so really I'd like to create some kind of mock (I usually use Moq) but Microsoft.Exchange.WebServices.Data.ExchangeService
doesn't implement any kind of interface that I can mock. My code is all coded to interface and designed for dependency injection, but I can't think of a good way to abstract out the EWS API dependency.