Exemple #1
0
 static IoCContainer InitContainerForIntegrationTests()
 {
     var container = new IoCContainer();
     container.Add(typeof(IDatabase), new RealDatabase());
     container.Add(typeof(IThirdPartyService), new FakeThirdPartyService());
     return container;
 }
Exemple #2
0
        static IoCContainer InitContainerForIntegrationTests()
        {
            var container = new IoCContainer();

            container.Add(typeof(IDatabase), new RealDatabase());
            container.Add(typeof(IThirdPartyService), new FakeThirdPartyService());
            return(container);
        }