Пример #1
0
 public void Init()
 {
     cfg.ConfigureMiniContainer();
     Options = new ServiceDispatcherConfiguationItem(ServiceDispatcher.DefaultServiceDispatcherName);
     cfg.ConfigureServiceDispatcher(Options);
     OnInit();
 }
        protected override void Given()
        {
            var cfg = new Configuration();

            cfg.ConfigureMiniContainer();

            SubjectUnderTest = new ServiceDispatcherConfiguationItem(ServiceDispatcher.DefaultServiceDispatcherName);
            cfg.ConfigureServiceDispatcher(SubjectUnderTest);
        }
        public void Test()
        {
            var cfg = new Configuration();
            var Options = new ServiceDispatcherConfiguationItem("default");

            cfg.ConfigureMiniContainer();
            cfg.ConfigureServiceDispatcher(Options);
            Options.ListenManager.Register(new ControllerListener());

            var ndf = ServiceLocator.Get<IServiceDispatcherConfiguationItem>();

            Assert.IsNotNull(ndf);
        }
        public void Test()
        {
            var cfg     = new Configuration();
            var Options = new ServiceDispatcherConfiguationItem("default");

            cfg.ConfigureMiniContainer();
            cfg.ConfigureServiceDispatcher(Options);
            Options.ListenManager.Register(new ControllerListener());

            var ndf = ServiceLocator.Get <IServiceDispatcherConfiguationItem>();

            Assert.IsNotNull(ndf);
        }