public AzureTableRepositorySteps(AzureStorageEmulator azureStorageEmulator) { this.cloudTable = azureStorageEmulator.TableClient.CreateTableIfNotExists(TableName); this.azureTableRepository = new AzureTableRepository(new AzureTableStorageOptions() { AccountKey = "key", AccountName = "name", TableName = "table" }, this.cloudTable); }
public void Setup() { AzureStorageEmulator ase = new AzureStorageEmulator(); ase.Start(); // letting emulator start Task.Delay(5000).Wait(); }
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; }