/// <summary>
        ///  Set the name of the table where the timeouts themselves are stored.
        /// </summary>
        public static PersistenceExtentions <AzureStoragePersistence, StorageType.Timeouts> TimeoutDataTableName(this PersistenceExtentions <AzureStoragePersistence, StorageType.Timeouts> config, string tableName)
        {
            AzureTimeoutStorageGuard.CheckTableName(tableName);

            config.GetSettings().Set("AzureTimeoutStorage.TimeoutDataTableName", tableName);
            return(config);
        }
Beispiel #2
0
 [TestCase("aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggg")] //
 // ReSharper restore StringLiteralTypo
 public void Should_not_allow_invalid_table_name(string tableName)
 {
     Assert.Throws <ArgumentException>(() => AzureTimeoutStorageGuard.CheckTableName(tableName));
 }