private static void AddTableStorageOptions(this IServiceCollection services, Action <DefaultTableStorageOptions> configure) { services.AddSingleton <ITableStorageOptions>(sp => { var options = new DefaultTableStorageOptions(); configure(options); return(options); }); }
public TransactionTableStoreTests(StorageAccountFixture fixture) { var options = new DefaultTableStorageOptions { TableNamePrefix = fixture.ExecutionContext.GetUniqueStorageTablePrefix(), ConnectionString = fixture.Configuration.StorageAccount.ConnectionString }; store = new TransactionTableStore(options); }
public ImmutableQueryModelTableStorage2Tests(StorageAccountFixture fixture) { var options = new DefaultTableStorageOptions { TableNamePrefix = fixture.ExecutionContext.GetUniqueStorageTablePrefix(), ConnectionString = fixture.Configuration.StorageAccount.ConnectionString }; storage = new ImmutableQueryModelTableStorage2 <FakeImmutableQueryModel>(options); }