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);
        }
Example #2
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()
        {
            this._name = Guid.NewGuid().ToString().ToLowerInvariant();
            var cloudStorageAccount = ConnectionConfig.StorageAccount;
            var cloudBlobClient     = cloudStorageAccount.CreateCloudBlobClient();
            var documentStrategy    = new DocumentStrategy(this._name);

            this._store = new AzureDocumentStore(documentStrategy, cloudBlobClient);

            this._container = cloudBlobClient.GetContainerReference(this._name);
            this._container.CreateIfNotExists();
        }
        public void Setup()
        {
            _name = Guid.NewGuid().ToString().ToLowerInvariant();
            CloudStorageAccount cloudStorageAccount = ConnectionConfig.StorageAccount;
            var cloudBlobClient  = cloudStorageAccount.CreateCloudBlobClient();
            var documentStrategy = new DocumentStrategy(_name);

            _store = new AzureDocumentStore(documentStrategy, cloudBlobClient);

            _container = cloudBlobClient.GetBlobDirectoryReference(_name).Container;
            _container.CreateIfNotExist();

            _sampleDocContainer = cloudBlobClient.GetBlobDirectoryReference(_name).Container;
            _sampleDocContainer.CreateIfNotExist();
        }