コード例 #1
0
        public void TestInitialize()
        {
            FactoryImpl mvcFactoryImpl = new FactoryImpl();

            Vji.Mock.Mvc.FactoryImpl mockMvcFactoryImpl = new Vji.Mock.Mvc.FactoryImpl();
            MvcFactory     = mvcFactoryImpl;
            MockMvcFactory = mockMvcFactoryImpl;
            mvcFactoryImpl.LoggerSetter     = LoggerSetter;
            mockMvcFactoryImpl.LoggerSetter = LoggerSetter;
        }
コード例 #2
0
        public void TestInitialize()
        {
            // Factories
            Log4netFactory      = new Log4netFactoryImpl();
            BootstrapperFactory = new BootstrapperFactoryImpl();
            MvcFactoryImpl      = new FactoryImpl();
            MvcFactory          = MvcFactoryImpl;
            MockMvcFactory      = new Vji.Mock.Mvc.FactoryImpl();

            // Bootstrapping - Logging
            LogBootstrapper logBootstrapper = BootstrapperFactory.NewLogBootstrapper();

            LoggerSetter                = Log4netFactory.NewLoggerSetter();
            LoggerSetterImpl            = (LoggerSetterImpl)LoggerSetter;
            MvcFactoryImpl.LoggerSetter = LoggerSetter;
            MockMvcFactory.LoggerSetter = LoggerSetter;

            // Bootstrapping others
            IList <Bootstrapper> bootstrappers = new List <Bootstrapper>();

            bootstrappers.Add(logBootstrapper);
            bootstrappers.Add(LoggerSetter);
            Bootstrapper = BootstrapperFactory.NewCompositeBootstrapper(LoggerSetter, bootstrappers);
        }