Beispiel #1
0
        public async Task SetUp()
        {
            /*
             * A queue name
             * - must start with a letter or number, and can only contain letters, numbers, and the dash (-) character.
             * - The first and last letters in the queue name must be alphanumeric. ...
             * - All letters in a queue name must be lowercase.
             * - A queue name must be from 3 through 63 characters long
             */

            var connString = GetTestConnectionString();

            _sut = new QueueStorageClient(connString, QueueName, true);

            await _sut.ClearQueueAsync();
        }
Beispiel #2
0
 public void WhenQueueNameIsNull_ThenThrowException()
 {
     Assert.Throws <ArgumentNullException>(() => _ = new QueueStorageClient(TestConnectionStrings.Valid, null, false));
 }
Beispiel #3
0
 public void WhenConnectionStringIsNull_ThenThrowException()
 {
     Assert.Throws <ArgumentNullException>(() => _ = new QueueStorageClient(null, QueueName, false));
 }