private static void AddTableStorageOptions(this IServiceCollection services, Action <DefaultTableStorageOptions> configure)
 {
     services.AddSingleton <ITableStorageOptions>(sp =>
     {
         var options = new DefaultTableStorageOptions();
         configure(options);
         return(options);
     });
 }
Esempio n. 2
0
        public TransactionTableStoreTests(StorageAccountFixture fixture)
        {
            var options = new DefaultTableStorageOptions
            {
                TableNamePrefix  = fixture.ExecutionContext.GetUniqueStorageTablePrefix(),
                ConnectionString = fixture.Configuration.StorageAccount.ConnectionString
            };

            store = new TransactionTableStore(options);
        }
Esempio n. 3
0
        public ImmutableQueryModelTableStorage2Tests(StorageAccountFixture fixture)
        {
            var options = new DefaultTableStorageOptions
            {
                TableNamePrefix  = fixture.ExecutionContext.GetUniqueStorageTablePrefix(),
                ConnectionString = fixture.Configuration.StorageAccount.ConnectionString
            };

            storage = new ImmutableQueryModelTableStorage2 <FakeImmutableQueryModel>(options);
        }