Пример #1
0
        public void CreateQueuesForEndpoint()
        {
            QueueCreation.CreateQueuesForEndpoint(
                endpointName: "myendpoint",
                account: Environment.UserName);

            Assert.IsTrue(MessageQueue.Exists(Environment.MachineName + "\\private$\\myendpoint"));

            QueueCreation.CreateQueue(
                queueName: "myerror",
                account: Environment.UserName);
            Assert.IsTrue(MessageQueue.Exists(Environment.MachineName + "\\private$\\myerror"));

            QueueCreation.CreateQueue(
                queueName: "myaudit",
                account: Environment.UserName);
            Assert.IsTrue(MessageQueue.Exists(Environment.MachineName + "\\private$\\myaudit"));
        }
Пример #2
0
        public void DeleteQueuesForEndpoint()
        {
            QueueCreation.CreateQueuesForEndpoint(
                endpointName: "myendpoint",
                account: Environment.UserName);
            QueueDeletion.DeleteQueuesForEndpoint("myendpoint");
            Assert.IsFalse(MessageQueue.Exists(@".\private$\myendpoint"));

            QueueCreation.CreateQueue(
                queueName: "myerror",
                account: Environment.UserName);
            QueueDeletion.DeleteQueue(queueName: "myerror");
            Assert.IsFalse(MessageQueue.Exists(@".\private$\myerror"));

            QueueCreation.CreateQueue(
                queueName: "myaudit",
                account: Environment.UserName);
            QueueDeletion.DeleteQueue(queueName: "myaudit");
            Assert.IsFalse(MessageQueue.Exists(@".\private$\myaudit"));
        }