New Version of SPEmulators available on nuget

Today I released a new version of the SPEmulators – the package to emulate SharePoint Server API in Farm Solutions – on nuget. The current version is 2.0.

The current version includes:

  • Support for Visual Studio 2015 Enterprise
  • Fixed errors for some editions of VS 2012 and 2013
  • Included Pull Request from Vladimir Almaev with support for SPViewFieldCollection
  • Fixed some minor bugs

For installing and using the package please refer to my original post. If you have any questions, issues or feature requests, please create an issue on the project page on GitHub.

2 comments

  1. Really like what you have done with this library. I was wondering if you are planning to elaborate on how to use it in a bit more detail. I commonly find that i need to extend the emulation of the SPSite/SPWeb/SPWebApplication objects, but there is no easy way to plug in to “Simulated API” method structure. It’d be great to see some more examples.

    1. Sorry for the late response. Everything that is not simulated by the API can be faked by using normal “Shims”. Are you familiar with Microsoft Fakes Framework? Look up in MSDN to which type or subtype the property or method that you want to fake belongs. Make sure it is in you fake file in Fakes/.fake. Create an instance of the shim and pass in the current object (like in https://writeabout.net/2014/06/21/spemulators-auf-nuget-verfgbar/ new ShimSPWebApplication(_context.Site.WebApplication){ MethodToFake = (p) => {… }};). If you do this over and over for the same method, then let me know and I will extend the API for that. If you need any further assistance let me know.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s