public void Init() { var loggerFactory = MockRepository.GenerateStub <ILoggerFactory>(); logger = MockRepository.GenerateStub <ILogger>(); loggerFactory.Stub(f => f.Create(typeof(AbstractControllerFactory))).IgnoreArguments().Repeat.Any().Return(logger); factory = new DefaultControllerFactory(); container = new TestServiceContainer(); container.AddService(typeof(ILoggerFactory), loggerFactory); factory.Service(container); factory.Inspect(Assembly.GetExecutingAssembly()); }
public void Init() { factory = new DefaultControllerFactory(); factory.Inspect(Assembly.GetExecutingAssembly()); }