public void Setup()
		{
			_controller = new TestController();
			_mocks = new MockRepository();
			_controllerReferenceFactory = _mocks.DynamicMock<IControllerReferenceFactory>();
			_argumentConversionService = _mocks.DynamicMock<IArgumentConversionService>();
			_runtimeInformationService = _mocks.DynamicMock<IRuntimeInformationService>();
			_services = new DefaultCodeGeneratorServices(_controllerReferenceFactory, _argumentConversionService, _runtimeInformationService);
			_context = _mocks.DynamicMock<IEngineContext>();
			Assert.AreEqual(_controllerReferenceFactory, _services.ControllerReferenceFactory);
			Assert.AreEqual(_argumentConversionService, _services.ArgumentConversionService);
			Assert.AreEqual(_runtimeInformationService, _services.RuntimeInformationService);
		}
예제 #2
0
 public void Setup()
 {
     _controller = new TestController();
     _mocks      = new MockRepository();
     _controllerReferenceFactory = _mocks.DynamicMock <IControllerReferenceFactory>();
     _argumentConversionService  = _mocks.DynamicMock <IArgumentConversionService>();
     _runtimeInformationService  = _mocks.DynamicMock <IRuntimeInformationService>();
     _services = new DefaultCodeGeneratorServices(_controllerReferenceFactory, _argumentConversionService, _runtimeInformationService);
     _context  = _mocks.DynamicMock <IEngineContext>();
     Assert.AreEqual(_controllerReferenceFactory, _services.ControllerReferenceFactory);
     Assert.AreEqual(_argumentConversionService, _services.ArgumentConversionService);
     Assert.AreEqual(_runtimeInformationService, _services.RuntimeInformationService);
 }
예제 #3
0
        public void Setup()
        {
            controller = new TestController();
            mocks      = new MockRepository();
            controllerReferenceFactory = mocks.DynamicMock <IControllerReferenceFactory>();
            argumentConversionService  = mocks.DynamicMock <IArgumentConversionService>();
            runtimeInformationService  = mocks.DynamicMock <IRuntimeInformationService>();
            services = new DefaultCodeGeneratorServices(controllerReferenceFactory, argumentConversionService, runtimeInformationService);
            context  = mocks.DynamicMock <IEngineContext>();

            Assert.AreEqual(controllerReferenceFactory, services.ControllerReferenceFactory);
            Assert.AreEqual(argumentConversionService, services.ArgumentConversionService);
            Assert.AreEqual(runtimeInformationService, services.RuntimeInformationService);
        }
		public void Setup()
		{
			controller = new TestController();
			mocks = new MockRepository();
			controllerReferenceFactory = mocks.DynamicMock<IControllerReferenceFactory>();
			argumentConversionService = mocks.DynamicMock<IArgumentConversionService>();
			runtimeInformationService = mocks.DynamicMock<IRuntimeInformationService>();
			services = new DefaultCodeGeneratorServices(controllerReferenceFactory, argumentConversionService, runtimeInformationService);
			context = mocks.DynamicMock<IEngineContext>();

			Assert.AreEqual(controllerReferenceFactory, services.ControllerReferenceFactory);
			Assert.AreEqual(argumentConversionService, services.ArgumentConversionService);
			Assert.AreEqual(runtimeInformationService, services.RuntimeInformationService);
		}