public ServiceBusMessageQueueTest()
        {
            var config     = YamlConfigReader.ReadConfig(null, "..\\..\\..\\..\\config\\test_connections.yaml", null);
            var connection = ConnectionParams.FromString(config.GetAsString("sb_queue"));

            Queue = new ServiceBusMessageQueue("TestQueue", connection);
            Queue.OpenAsync(null).Wait();
            Fixture = new MessageQueueFixture(Queue);
        }
        public ServiceBusMessageTopicTest()
        {
            var config     = YamlConfigReader.ReadConfig(null, @"..\\..\\..\\..\\config\\test_connections.yaml", null);
            var connection = ConnectionParams.FromString(config.GetAsString("sb_topic"));

            Topic = new ServiceBusMessageTopic("TestTopic", connection);
            Topic.OpenAsync(null).Wait();
            Fixture = new MessageQueueFixture(Topic);
        }
Esempio n. 3
0
        public StorageMessageQueueTest()
        {
            var config     = YamlConfigReader.ReadConfig(null, "..\\..\\..\\..\\config\\test_connections.yaml", null);
            var connection = ConnectionParams.FromString(config.GetAsString("storage_queue"));

            Queue = new StorageMessageQueue("TestQueue", connection);
            //Queue.SetReferences(new MockReferences());
            Queue.Interval = 50;
            Queue.OpenAsync(null).Wait();

            Fixture = new MessageQueueFixture(Queue);
        }
        public StorageMessageQueueBackwardCompatibilityTest()
        {
            var config     = YamlConfigReader.ReadConfig(null, "..\\..\\..\\..\\config\\test_connections.yaml", null);
            var connection = ConnectionParams.FromString(config.GetAsString("storage_queue"));

            QueueOld = new StorageMessageQueue("TestQueue", connection)
            {
                Interval = 50
            };
            QueueOld.OpenAsync(null).Wait();

            var connection2 = ConnectionParams.FromString(config.GetAsString("storage_queue2"));

            QueueNew = new StorageMessageQueue("TestQueue", connection2)
            {
                Interval = 50
            };
            QueueNew.OpenAsync(null).Wait();

            Fixture = new MessageQueueFixtureBackwardCompatibility(QueueOld, QueueNew);
        }