public void Setup() { var random = new Random(); sendName = string.Format("a{0}b", random.Next()); recieveName = string.Format("a{0}b", random.Next()); sendBatchName = string.Format("a{0}b", random.Next()); var client = new BusManagementClient(connection); Task.WaitAll( new Task[] { client.QueueCreate(sendName) , client.QueueCreate(recieveName) , client.QueueCreate(sendBatchName) } ); }
public async Task DeleteQueue() { var random = new Random(); var name = string.Format("a{0}b", random.Next()); var client = new BusManagementClient(connection); await client.QueueCreate(name); await client.QueueDelete(name); var exists = await client.QueueExists(name); Assert.IsFalse(exists); }