i dream of ispweb
DESCRIPTION
Gil Zilberfeld's presentation from ADC2011 on unit testing SharePoint application.TRANSCRIPT
![Page 1: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/1.jpg)
Veranstalter:
Speziell zu Software-Testing14.-15. Februar 2011, München
I Dream of ISPWeb:Unit Testing SharePoint Apps
Gil Zilberfeld
![Page 2: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/2.jpg)
Who am I?
– Software developer for 15 years
– Product Manager at Typemock
– @gil_zilberfeld
– www.gilzilberfeld.com
![Page 3: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/3.jpg)
What’s the plan?
– Unit Testing 101
– Tools
– Examples
– Start now
o It's not that hard
![Page 4: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/4.jpg)
What is unit testing?
![Page 5: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/5.jpg)
Why unit testing?
– Reduce pain
– Improve productivity
![Page 6: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/6.jpg)
Automated unit testing shorten the feedback cycle
![Page 7: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/7.jpg)
Where do I start?
![Page 8: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/8.jpg)
SharePoint Development
![Page 9: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/9.jpg)
So is SharePoint Untestable?
![Page 10: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/10.jpg)
Dependencies
![Page 11: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/11.jpg)
Why do we need isolation?
Applications are complex
We can’t touch a live system
When we call SharePoint
– Setup
– Teardown
– Repeat
![Page 12: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/12.jpg)
Isolation Frameworks to the Rescue
![Page 13: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/13.jpg)
Fakes help change behavior without changing the code
![Page 14: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/14.jpg)
Fakes help verify calls
![Page 15: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/15.jpg)
Isolation Frameworks Demo
![Page 16: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/16.jpg)
What are the differences?
![Page 17: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/17.jpg)
Unit tests are the antidote to stupid bugs
![Page 18: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/18.jpg)
Start now!
![Page 19: I dream of ISPWeb](https://reader035.vdocuments.net/reader035/viewer/2022062220/554fb75fb4c9050e7d8b4648/html5/thumbnails/19.jpg)
Resources
• Typemock– http://www.typemock.com
• Moles– http://research.microsoft.com/e
n-us/projects/moles/
• Telerik– http://www.telerik.com/products
/mocking.aspx
• Mock Comparison Project– http://code.google.com/p/
mocking-frameworks-compare/