How to upload/download a document in SharePoint 2010 using Client Context Object Model

In order to use ClientContext I need to add reference to two dll’s to my project i.e. Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll. In this blog I’ll display how to Get ListItemCollection from SharePoint document list using CAML Upload a document to SharePoint Document list Download a document from SharePoint Document list Get ListItemCollection from SharePoint Document list…

2

How to test a class member that is not public using Visual Studio 2010

There are various ways to test a Class member which is not public By making the private members public of a class under test Breaks the encapsulation principle API is modified just for the sake of testing By making the private members internal of a class under test and annotate the assembly with internalsVisibleTo attribute…

3

How to unit test SQL Server 2008 database using Visual Studio 2010 – Part 3

This is the last article of the series “How to unit test SQL Server 2008 database using Visual Studio 2010”. The previous articles are Unit test SQL Server 2008 – Part 1 – Focused on setting up environment, creating database project and executing simple unit tests Unit test SQL Server 2008 – Part 2 –…

6

How to unit test SQL Server 2008 database using Visual Studio 2010 – Part 2

This is the second article I am writing on unit testing SQL Server 2008 database using Visual Studio 2010. The other articles are Unit test SQL Server 2008 – Part 1 – Focused on setting up environment, creating database project and executing simple unit tests Unit test SQL Server 2008 – Part 3 – Focused…

1

How to choose between IDisposable, IComponent, Component, MarshalByValueComponent and Control while implementing a Class

In this article I’ll discuss about the criteria behind choosing IDisposable, IComponent, Component, MarshalByValueComponent and base Control classes(System.Windows.Form.Control and System.Web.UI.Control) while implementing a Class. Prior to discussing further I’d like to share the reason behind this article. I ran code analysis in a project code and got a warning that Dispose was not called for…

3

How to host a service in Azure and expose using WCF and Visual Studio 2010 : Issues Faced and Fixes

This blog is regarding my first attempt to explore “Hosting a service in Azure using WCF and Visual Studio 2010”, the issue I faced and the quick fixes required to make it running. You can explore the Windows Azure Platform at http://www.microsoft.com/windowsazure/ I faced a few issues and so sharing the workarounds. I won’t get…

0

INotifyPropertyChanging and INotifyPropertyChanged in Real Life using Expression Trees

Functional Requirements: Requirements when we need to achieve any or all of the functionalities listed below Undo/Redo functionality in an Application Any of user interface patterns e.g. MVC, MVP, MVVM etc Other patterns State Pattern, Events, Event handlers etc. In this blog I’ll discuss the points mentioned below Sample Scenario High level Solution Solution using…

0

How to unit test SQL Server 2008 database using Visual Studio 2010

In this article I’ll discuss about unit testing SQL Server 2008 Database project using Visual Studio 2010. As Unit tests test the part of the program integration testing becomes easier, moreover unit tests help enhancing, maintaining or extending a solution provided they are well written. This is first part of this series “How to unit…

4