Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Creating a Fake SharePoint Client Context using the SharePoint client object model

$
0
0

I have recently been looking at creating unit tests for some SharePoint development. This will use a mixture of methods using the client object model and the SharePoint object model.

I am using SharePoint emulators to test code written with the SharePoint object model. This allows me to test my code, without having a SharePoint environment available, and I can pass methods dummy site URLs, etc.

I am looking to find a way to do this for my client object model code. I have been looking into using Microsoft fakes and faking the SharePoint.Client file. However, I can't seem to find a way to fake a Client Context.

Does anyone have any ideas?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>