コード例 #1
0
		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());
		}
コード例 #2
0
		public void Init()
		{
			factory = new DefaultControllerFactory();
			factory.Service(new TestServiceContainer());
			factory.Inspect(Assembly.GetExecutingAssembly());
		}