public static MessageQueue CreatePrivateQueue(string computerName, string queueName, bool isTransactional) { var queuePath = CreateQueuePathForPrivateQueue(computerName, queueName, isTransactional); var queueService = new QueueService(); return(queueService.CreateQueue(queuePath, isTransactional)); }
protected override void Arrange() { Cleanup(); _queueService = new QueueService(); _queuePath = QueueTestHelper.CreateQueuePathForPrivateQueue(ComputerName, TestQueueName, _isTransactional); _queueService.CreateQueue(_queuePath, _isTransactional); }
protected override void Arrange() { Cleanup(); _queueService = new QueueService(); _queuePath = QueueTestHelper.CreateQueuePathForPrivateQueue(ComputerName, TestQueueName, _isTransactional); _queueService.CreateQueue(_queuePath, _isTransactional); _messageData = new TestClass1 { IntValue1 = 1, StringValue1 = "string1" }; }
protected override void Arrange() { Cleanup(); _queueService = new QueueService(); _queuePath = QueueTestHelper.CreateQueuePathForPrivateQueue(ComputerName, TestQueueName, _isTransactional); _queueService.CreateQueue(_queuePath, _isTransactional); _messageData = new TestClass1 { IntValue1 = 1, StringValue1 = "string1" }; }
protected override void Arrange() { Cleanup(); _queueService = new QueueService(); _queuePath = QueueTestHelper.CreateQueuePathForPrivateQueue(ComputerName, TestQueueName, _isTransactional); _queueService.CreateQueue(_queuePath, _isTransactional); for (int i = 1; i <= MessageCount; i++) { var messageData = new TestClass1 { IntValue1 = i, StringValue1 = "string" + i }; _queueService.CreateMessage(_queuePath, messageData, TestMessagesLabel); } }
protected override void Arrange() { Cleanup(); _queueService = new QueueService(); _queuePath = QueueTestHelper.CreateQueuePathForPrivateQueue(ComputerName, TestQueueName, _isTransactional); _queueService.CreateQueue(_queuePath, _isTransactional); _queueService.CreateMessage(_queuePath, new TestClass1 { StringValue1 = "Should not be deleted" }, TestMessagesLabelForMessageWhichShouldNotBeDeleted); _messageData = new TestClass1 { IntValue1 = 1, StringValue1 = "string1" }; _queueService.CreateMessage(_queuePath, _messageData, TestMessagesLabel); _messageToDelete = _queueService.GetMessageInfos(_queuePath, TestMessagesLabel).Single(); }
protected override void Arrange() { Cleanup(); _queueService = new QueueService(); _queuePath = QueueTestHelper.CreateQueuePathForPrivateQueue(ComputerName, TestQueueName, _isTransactional); _queueService.CreateQueue(_queuePath, _isTransactional); for (int i = 1; i <= MessageCount; i++) { var messageData = new TestClass1 { IntValue1 = i, StringValue1 = "string" + i }; _queueService.CreateMessage(_queuePath, messageData, TestMessagesLabel); } }
protected override void Arrange() { Cleanup(); _queueService = new QueueService(); _queuePath = QueueTestHelper.CreateQueuePathForPrivateQueue(ComputerName, TestQueueName, _isTransactional); _queueService.CreateQueue(_queuePath, _isTransactional); _queueService.CreateMessage(_queuePath, new TestClass1 { StringValue1 = "Should not be deleted" }, TestMessagesLabelForMessageWhichShouldNotBeDeleted); _messageData = new TestClass1 { IntValue1 = 1, StringValue1 = "string1" }; _queueService.CreateMessage(_queuePath, _messageData, TestMessagesLabel); _messageToDelete = _queueService.GetMessageInfos(_queuePath, TestMessagesLabel).Single(); }
protected override void Arrange() { Cleanup(); _queueService = new QueueService(); _queuePath = QueueTestHelper.CreateQueuePathForPrivateQueue(ComputerName, TestQueueName, _isTransactional); _queueService.CreateQueue(_queuePath, _isTransactional); }
public static MessageQueue CreatePrivateQueue(string computerName, string queueName, bool isTransactional) { var queuePath = CreateQueuePathForPrivateQueue(computerName, queueName, isTransactional); var queueService = new QueueService(); return queueService.CreateQueue(queuePath, isTransactional); }