public void TestInitialize() { Vji.Mvc.FactoryImpl mvcFactoryImpl = new Vji.Mvc.FactoryImpl(); Vji.Mock.Mvc.FactoryImpl mockMvcFactoryImpl = new Vji.Mock.Mvc.FactoryImpl(); MvcFactory = mvcFactoryImpl; MockMvcFactory = mockMvcFactoryImpl; mvcFactoryImpl.LoggerSetter = LoggerSetter; mockMvcFactoryImpl.LoggerSetter = LoggerSetter; }
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); }