Exemplo n.º 1
0
        public void Init()
        {
            ConnectedModuleManager.Instance.RegisterModulesForIoC(Environment.Production);

            //Select message queueu entities
            _messageStorage = IoCManager.Instance.ResolveIfRegistered <IMessageStorage>();
            //_configurationDB = new Connected.DAL.Configuration.Repositories.EF.ConnectedConfDBRepository();

            _service = IoCManager.Instance.ResolveIfRegistered <RouteFinder.RouteFinderService>(); //new RouteFinder.RouteFinderService(_messageStorage, _configurationDB);
        }
        public void Init()
        {
            ConnectedModuleManager.Instance.RegisterModulesForIoC(ConnectedEnvironment.Test);

            //Select message queueu entities
            _messageStorage = IoCManager.Instance.ResolveIfRegistered <IMessageStorage>();// new FakeStorage(); //_messageStorage = new MessageQueueStorage();

            //Resolve Configuration DB Repository
            IConnectedConfDBRepository connectedConfDBRepository = IoCManager.Instance.ResolveIfRegistered <IConnectedConfDBRepository>();

            _service = new Connected.Dispatcher.DispatcherService(_messageStorage, connectedConfDBRepository);
        }
Exemplo n.º 3
0
 protected MessageStorageTests(Connected.Schemas.IMessageStorage messageStorage)
 {
     MessageStorage = messageStorage;
 }