public void when_build_called_then_it_should_register_container_in_container() { ConfigureContainer.Set(_container.Object, _sut); _sut.Build(); _container.Verify( x => x.RegisterAsSingleton(It.Is <IContainer>(x1 => _container.Object.Equals(_sut.Container))), Times.Once()); }
public static Configure CastleContainer(this Configure config) { ConfigureContainer.Set(new CastleContainerAdapter(), config); return(config); }
public static Configure CastleContainer(this Configure config, IWindsorContainer windsorContainer) { ConfigureContainer.Set(new CastleContainerAdapter(windsorContainer), config); return(config); }
public void when_build_called__then_it_should_register_and_call_all_default_component_configurators() { ConfigureContainer.Set(_container.Object, _sut); }