Implementation of IMessageStore that stores messages in memory.
Inheritance: IMessageStore
コード例 #1
0
        public void Queue_should_exist_when_created()
        {
            var sut = new InMemoryMessageStore();
            var queueName = "test";
            sut.CreateQueue(queueName);

            var exists = sut.QueueExists(queueName);
            Assert.AreEqual<bool>(true, exists);
        }
コード例 #2
0
        public void Should_store_queue_when_queue_created()
        {
            var sut = new InMemoryMessageStore();
            var queueName = "test";
            sut.CreateQueue(queueName);

            var queues = sut.GetQueues();
            Assert.AreEqual<string>(queueName, queues[0]);
        }