Beispiel #1
0
        public MemoryMessageQueueTest()
        {
            Queue = new MemoryMessageQueue("TestQueue");
            //Queue.SetReferences(new MockReferences());
            Queue.OpenAsync(null).Wait();

            Fixture = new MessageQueueFixture(Queue);
        }
        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);
        }
Beispiel #4
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);
        }