コード例 #1
0
 public AzureTableRepositorySteps(AzureStorageEmulator azureStorageEmulator)
 {
     this.cloudTable           = azureStorageEmulator.TableClient.CreateTableIfNotExists(TableName);
     this.azureTableRepository = new AzureTableRepository(new AzureTableStorageOptions()
     {
         AccountKey = "key", AccountName = "name", TableName = "table"
     }, this.cloudTable);
 }
コード例 #2
0
ファイル: TestFileStorage.cs プロジェクト: DarkMindFX/Fineo
        public void Setup()
        {
            AzureStorageEmulator ase = new AzureStorageEmulator();

            ase.Start();

            // letting emulator start
            Task.Delay(5000).Wait();
        }
コード例 #3
0
        public void GetStatus_Success()
        {
            AzureStorageEmulator ase = new AzureStorageEmulator();
            // starting
            var tStart = ase.StartAsync();

            tStart.Wait();
            bool isStarted = tStart.Result;

            // getting status
            var tStatus = ase.StatusAsync();

            tStatus.Wait();
            Dictionary <string, string> s = tStatus.Result;

            // stopping
            var tStop = ase.StopAsync();

            tStop.Wait();
            bool isStopped = tStop.Result;
        }