Example #1
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);
        }