public WhingePoolApplicationContext(IWhingePoolConfiguration configuration) : base(configuration) { _whingersTable = new WhingersTable(CloudStorageAccount, configuration.WhingersTableName); _whingePoolsTable = new WhingePoolsTable(CloudStorageAccount, configuration.WhingePoolsTableName); _whingesByWhingerTable = new WhingesByWhingerTable(CloudStorageAccount, configuration.WhingesByWhingerTableName); _whingesByWhingePoolTable = new WhingesByWhingePoolTable(CloudStorageAccount, configuration.WhingesByWhingePoolTableName); }
public WhingePoolConfiguration(IAzureStorageConfiguration azureStorageConfiguration, ICommandHandlerConfiguration commandHandlerConfiguration, ICloudRunnerConfiguration commandQueue, IWhingePoolConfiguration whingePoolConfiguration) { StorageAccount = azureStorageConfiguration.StorageAccount; StorageAccountKey = azureStorageConfiguration.StorageAccountKey; RegisteredCommandHandlersBlobContainerName = commandHandlerConfiguration.RegisteredCommandHandlersBlobContainerName; RegisteredCommandHandlersTableName = commandHandlerConfiguration.RegisteredCommandHandlersTableName; CommandResultsTableName = commandQueue.CommandResultsTableName; CommandQueueName = commandQueue.CommandQueueName; WhingesTableName = whingePoolConfiguration.WhingesTableName; WhingersTableName = whingePoolConfiguration.WhingersTableName; WhingePoolsTableName = whingePoolConfiguration.WhingePoolsTableName; WhingesByWhingerTableName = whingePoolConfiguration.WhingesByWhingerTableName; WhingesByWhingePoolTableName = whingePoolConfiguration.WhingesByWhingePoolTableName; }
public void GivenAWhingePoolConfigurationOf(Table table) { _whingePoolConfiguration = table.CreateInstance<WhingePoolConfiguration>(); }
public void GivenAWhingePoolConfigurationOf(Table table) { _whingePoolConfiguration = table.CreateInstance <WhingePoolConfiguration>(); }