public void CreateQueue_ValidName_CreatesQueue() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); client.CreateQueue(queueName); _util.AssertQueueExists(queueName); }
public void CreateQueue_AlreadyExistsWithNoMetadata_ReportsNoContentPerDocumentation() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); _util.CreateQueue(queueName); client.CreateQueue(queueName); // I don't think I can/should-be-able-to test the return code at this level... }
public void CreateQueue_ValidNameAndMetadata_CreatesQueue() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); client.CreateQueue(queueName, new Dictionary<string, string>() { { "SampleName", "SampleValue" } }); _util.AssertQueueExists(queueName); }
public void CreateQueue_AlreadyExistsWithDifferentMetadata_ReportsConflictProperly() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); _util.CreateQueue(queueName, new Dictionary<string, string> { { "SampleKey", "SampleValue" } }); client.CreateQueue(queueName, new Dictionary<string, string> { { "SampleKey", "SampleValue2" } }); // expects exception }
public void CreateQueue_AlreadyExistsWithMatchingMetadata_ReportsNoContentPerDocumentation() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); _util.CreateQueue(queueName, new Dictionary<string, string> { { "SampleKey", "SampleValue" } }); client.CreateQueue(queueName, new Dictionary<string, string> { { "SampleKey", "SampleValue" } }); // I don't think I can/should-be-able-to test the return code at this level... }