I’ve got a WCF REST Service which I’d like to unit test. i.e – I’ve got all the business logic tested (full separation of layers), but would like to check if the WCF service works as wanted with all the logic and the real DB.
I couldn’t find any useful info on this.
Each method looks like this:
[WebGet(UriTemplate = "Version?ts={ts}", ResponseFormat = System.ServiceModel.Web.WebMessageFormat.Json)]
public WCF_Response GetVersion( string ts)
{
return new ApiVersion {
version = VersionManager.CurrentVersion(),
};
}
i.e – with an URI template. Otherwise it’s a normal WCF service.
Before I write a web based unit testing, help would be much appreciated 🙂
Waitin can be used to test web applications- I assume that it could be leveraged for REST services as well.