A feature of VS to be able to link between files instead of actually copying them. Read more...
Tuesday, 30 August 2011
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
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
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
Repository & Unit of work patterns with EF 4.0
A very simple and good example of how to use Repository and Unit of work patterns with Entity Framework 4.0 on top of the POCO objects.
http://blogs.msdn.com/b/adonet/archive/2009/06/16/using-repository-and-unit-of-work-patterns-with-entity-framework-4-0.aspx
http://blogs.msdn.com/b/adonet/archive/2009/06/16/using-repository-and-unit-of-work-patterns-with-entity-framework-4-0.aspx
Friday, 19 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
http://technet.microsoft.com/en-us/library/cc723251.aspx|http://technet.microsoft.com/en-us/library/cc723251.aspx
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
- Message Queueing Integration with WCF
- Sample Starter Project Using WCF and MSMQ
- Programming MSMQ in .NET - Part 1
This sample requires the installation of Message Queuing. See the installation instructions in Message QueuingNotes 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
MessageQueue: provides all the necessary functionality to work with and manipulate MSMQ queues
MSMQ Software Development Kit (SDK)Referencing System.Messaging libarary Message and MessageQueue classes are the ones that is needed.
Message: rovides everything required to define and use an MSMQ messageMessageQueue: provides all the necessary functionality to work with and manipulate MSMQ queues
http://technet.microsoft.com/en-us/library/cc723251.aspx|http://technet.microsoft.com/en-us/library/cc723251.aspx
Subscribe to:
Posts (Atom)