Tuesday, 30 August 2011

Linked files in Visual Studio 2010

A feature of VS to be able to link between files instead of actually copying them. Read more...


Moq

Mocking library for .NET
What Is Moq?
"Moq is a mocking framework for C#/.NET. It is used in unit testing to isolate your class under test from its dependencies and ensure that the proper methods on the dependent objects are being called" Read more...

Other Moq frameworks for .net 
TypeMock, RhinoMocks, nMock

"Mock objects are simulated objects that mimic the behavior of real objects in controlled ways In a unit test, mock objects can simulate the behavior of complex, real (non-mock) objects and are therefore useful when a real object is impractical or impossible to incorporate into a unit test." Read more on wikipedia

Introduction to Moq
http://code.google.com/p/moq/wiki/QuickStart

Beginning Mocking With Moq 3 – Part 1 to 4
http://www.codethinked.com/beginning-mocking-with-moq-3-part-1

Friday, 26 August 2011

Plug-ins to integrate Subversion with Visual Studion

1 - Visual SVN
http://www.visualsvn.com/

2 - AnkhSVN
http://ankhsvn.open.collab.net/

Domain-Driven Design / Intro

A good introduction article on DDD
http://msdn.microsoft.com/en-us/magazine/dd419654.aspx

The story starts from Plato the famous student of Socrates who proposed
that the concepts, people, places, and things we intuit and perceive with our senses are merely shadows of the truth. He dubbed this idea of a true thing a Form.
To explain Forms, Plato used what's become known as the allegory of the cave. In this allegory, there exists a people that are bound inside a deep, dark cave. These cave people are chained in such a way that they can only ever see a blank wall of the cave that receives light from the opening. When an animal walks by the opening, a shadow is projected onto the interior wall that the cave dwellers see. To the cave dwellers, these shadows are the real thing. When a lion walks by, they point at the shadow of the lion and exclaim, "Run for cover!" But it is really only a shadow of the real Form, the lion itself...Read more about it in the Platonic Model section of the article.



Tuesday, 23 August 2011

Wednesday, 17 August 2011

XML SPY

XML Editor for Modeling, Editing, Transforming, & Debugging XML Technologies http://www.altova.com/xmlspy.html

Friday, 12 August 2011

Working with MSMQ

What is MSMQ?

Microsoft Message Queue Server (MSMQ) is a fast store-and-forward service that enables applications running at different times to communicate across heterogeneous networks and systems that may be temporarily offline.

Applications send messages to queues and read messages from queues. The following illustration shows how a queue can hold messages that are generated by multiple sending applications and read by multiple receiving applications.Read more

Sample Code

This sample requires the installation of Message Queuing. See the installation instructions in Message Queuing
Notes on the WCF code sample

  • You need to add the name of the Queue in the the appSettings
  • Also in the clinent project in the service configs under system.setviceModel in the web.config file you need to add endpoint and bindings

Useful classes
Referencing System.Messaging libarary Message and MessageQueue classes are the ones that is needed.
Message: rovides everything required to define and use an MSMQ message
MessageQueue: provides all the necessary functionality to work with and manipulate MSMQ queues


MSMQ Software Development Kit (SDK)
http://technet.microsoft.com/en-us/library/cc723251.aspx|http://technet.microsoft.com/en-us/library/cc723251.aspx