Ejemplo n.º 1
0
        public void CreateFileTest()
        {
            #region arrange
            string connectionString = "DefaultEndpointsProtocol=https;AccountName=storageaccountcmsen927e;AccountKey=X63IKbAfC70fS/jYBJPyyK3ofSFdUeKSyTvCxLiAEgrOe9US+ylyez8KnDIrQDxGx6M9WHY5dF5D2FrSb5mhXQ==;EndpointSuffix=core.windows.net";
            string container        = "uploader";
            string blobName         = "mycreation.txt";
            string text             = "this is my test text";
            #endregion

            #region act
            IBlobManager blobManager = new BlobManager(connectionString);
            byte[]       byteArray   = Encoding.ASCII.GetBytes(text);
            MemoryStream stream      = new MemoryStream(byteArray);
            blobManager.DoUploadBlob(container, blobName, stream);
            #endregion

            #region assert
            Assert.IsTrue(true);
            #endregion
        }