Esempio n. 1
0
        public async Task Stop_StopsStorageEmulator()
        {
            // Arrange
            await EnsureEmulatorIsStopped();

            await _sut.Start();

            // Act
            await _sut.Stop();

            // Assert
            await VerifyAzureStorageEmulatorIsStopped();
        }
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                if (!_emulatorAlreadyRunning)
                {
                    _azureStorageEmulatorManager.Stop()
                    .GetAwaiter()
                    .GetResult();
                }

                _disposed = true;
            }
        }