コード例 #1
0
        public static void StartAndCleanStorage(TestContext cont)
        {
            _account    = CloudStorageAccount.DevelopmentStorageAccount;
            _blobClient = _account.CreateCloudBlobClient();

            _storageEmulatorProxy = new StorageEmulatorProxy();
            _storageEmulatorProxy.StartEmulator();

            _storageContainerName = Constants.ApplicationsRootFolderName;

            _blobLeaseFactory = new BlobLeaseFactory(60);
        }
コード例 #2
0
 public void Initialize()
 {
     this.timestampCreator = new Mock <ITimestampCreator>();
     this.blobLeaseHelper  = new Mock <IBlobLeaseHelper>();
     this.target           = new BlobLeaseFactory(this.timestampCreator.Object, this.blobLeaseHelper.Object);
 }