Exemplo n.º 1
0
        public void SetUp()
        {
            theRegistry = new BusRegistry();
            _behaviors  = new Lazy <BehaviorGraph>(() =>
            {
                return(BehaviorGraph.BuildFrom(theRegistry));
            });

            _channels = new Lazy <ChannelGraph>(() => _behaviors.Value.Settings.Get <ChannelGraph>());
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            theRegistry = new BusRegistry();
            _behaviors  = new Lazy <BehaviorGraph>(() => {
                return(BehaviorGraph.BuildFrom(registry => {
                    new FubuTransportationExtensions().As <IFubuRegistryExtension>().Configure(registry);
                    theRegistry.As <IFubuRegistryExtension>().Configure(registry);
                }));
            });

            _handlers = new Lazy <HandlerGraph>(() => _behaviors.Value.Settings.Get <HandlerGraph>());
            _channels = new Lazy <ChannelGraph>(() => _behaviors.Value.Settings.Get <ChannelGraph>());
        }