Esempio n. 1
0
        public void Setup()
        {
            var cloudStorageAccount = ConnectionConfig.StorageAccount;

            this.name                = Guid.NewGuid().ToString().ToLowerInvariant();
            this._cloudBlobClient    = cloudStorageAccount.CreateCloudBlobClient();
            this._cloudBlobContainer = this._cloudBlobClient.GetContainerReference(this.name);
            this._cloudBlobContainer.CreateIfNotExists();
            this._documentStrategy = new DocumentStrategy(this.name);
            this._writer           = new AzureAtomicWriter <Guid, TestView>(this._cloudBlobClient, this._documentStrategy);
            this._reader           = new AzureAtomicReader <Guid, TestView>(this._cloudBlobClient, this._documentStrategy);
        }
        public void Setup()
        {
            CloudStorageAccount cloudStorageAccount = ConnectionConfig.StorageAccount;

            name                = Guid.NewGuid().ToString().ToLowerInvariant();
            _cloudBlobClient    = cloudStorageAccount.CreateCloudBlobClient();
            _cloudBlobContainer = _cloudBlobClient.GetBlobDirectoryReference(name).Container;
            _cloudBlobContainer.CreateIfNotExist();
            _documentStrategy = new DocumentStrategy(name);
            _writer           = new AzureAtomicWriter <Guid, TestView>(_cloudBlobClient, _documentStrategy);
            _reader           = new AzureAtomicReader <Guid, TestView>(_cloudBlobClient, _documentStrategy);
        }