Beispiel #1
0
 protected virtual void OneTimeSetUp()
 {
     Reader  = new EntryReader(DatabaseName, CollectionName);
     Creator = new EntryCreator(Reader, DatabaseName, CollectionName);
     Updater = new EntryUpdater(DatabaseName, CollectionName);
     Deleter = new EntryDeleter(DatabaseName, CollectionName);
     Broker  = new EntryBroker(Creator, Reader, Updater, Deleter);
     Broker.Initialize(DatabaseName);
 }
        protected override void OneTimeSetUp()
        {
            base.OneTimeSetUp();
            RabbitCreator = new EntryCreator(
                new MessagePublisher(HostName, ExchangeName, CreatorQueueName));
            RabbitReader = new EntryReader(
                new MessageConsumer(HostName, ApiQueueName),
                new MessagePublisher(HostName, ExchangeName, ReaderQueueName));
            RabbitUpdater = new EntryUpdater(
                new MessagePublisher(HostName, ExchangeName, UpdaterQueueName));
            RabbitDeleter = new EntryDeleter(
                new MessagePublisher(HostName, ExchangeName, DeleterQueueName));
            RabbitBroker = new EntryBroker(Creator, Reader, Updater, Deleter);

            AutoResetEvent = new AutoResetEvent(false);
        }