CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of unit of work
C#
[TestClass]
public class HelpCenterServiceTest : BaseTest
{
    private Mock<IUnitOfWork> unitOfWork;
    private IHelpCenterService service;
 
    public static void MyClassInitialize(TestContext testContext)
    {
        IoCInitialize();
    }
by Fernando Claverino   December 28, 2009 @ 2:04pm
317 Views
1 comments
 
C#
public class MyRegistry : Registry 
{
    public MyRegistry()
    {
        // DataContext
        ForRequestedType<DataContext>()
            .CacheBy(InstanceScope.HttpContext)
            .TheDefault.Is.ConstructedBy(() => new DataContext(DecriptConectionString()));
 
        // Unit of work
by Fernando Claverino   December 28, 2009 @ 1:58pm
624 Views
1 comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate