public static void MyClassInitialize(TestContext testContext)
        {
            CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSettingPublisher) =>
            {
                var connectionString = DataLayerTest.Properties.Settings.Default.TestStrageConnectionString;
                configSettingPublisher(connectionString);
            });

            _Account = CloudStorageAccount.DevelopmentStorageAccount;
            _Target = new MessageTableServiceContext(_Account);
        }
Пример #2
0
 public void InsertAzureTable()
 {
     CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSettingPublisher) =>
     {
         var connectionString = "";
         configSettingPublisher(connectionString);
     });
     //Azureアカウントの取得
     _account = CloudStorageAccount.FromConfigurationSetting("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
     _context = new MessageTableServiceContext(_account);
 }