public static void Initialize(TestContext context)
        {
            account = CloudStorageAccount.Parse("UseDevelopmentStorage=true");
            var azureTable = new AzureTable <TestRow>(account, TableName);

            azureTable.EnsureExistsAsync().Wait();
        }
Exemplo n.º 2
0
        public static void Initialize(TestContext context)
        {
            var account    = CloudConfiguration.GetStorageAccount("DataConnectionString");
            var azureTable = new AzureTable <TestRow>(account, TableName);

            azureTable.EnsureExistsAsync().Wait();
        }
 public void TestInitialize()
 {
     target = new SurveyManagementService(null,
                                          (tableName) => {
         var azureTable = new AzureTable <Models.SurveyInformationRow>(account, tableName);
         azureTable.EnsureExistsAsync().Wait();
         return(azureTable);
     },
                                          (containerName) => {
         azureBlobContainer = new AzureBlobContainer <Models.Survey>(
             account,
             containerName);
         azureBlobContainer.EnsureExistsAsync().Wait();
         return(azureBlobContainer);
     });
 }