Year: 2010

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…

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…

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…

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…

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…

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…