Ejemplo n.º 1
0
        public void GuyWire_Delegates_To_FactoryInstaller()
        {
            var installer = new FactoryRegistration();

            _guyWire.Expect(g => g.ComponentsInfo).Return(new[] { installer });

            Assert.DoesNotThrow(() => _guyWire.Wire());
        }
Ejemplo n.º 2
0
        public InstallersTests()
        {
            _container = new WindsorContainer();

            _guyWire = MockRepository.GenerateMock <GuyWire>(_container);
            _guyWire.Expect(g => g.Container).Return(_container);
            _guyWire.Expect(g => g.Wire()).CallOriginalMethod(OriginalCallOptions.CreateExpectation);
        }