public async Task UploadToBlob_BlobFileCanBeUploaded() { Uri dummy; if (!Uri.TryCreate(AppUrl, UriKind.Absolute, out dummy) || string.IsNullOrEmpty(AppKey) || string.IsNullOrEmpty(ContainerName)) { Console.WriteLine("Fill the AppUrl / AppKey / ContainerName fields to test this E2E"); return; } var mobileService = new MobileServiceClient(AppUrl, AppKey); var fileContents = new MemoryStream(TestImage); var url = await mobileService.UploadFileToBlobStorage(ContainerName, "ghost.png", "image/png", fileContents); var http = new HttpClient(); var resp = await http.GetAsync(url); resp.EnsureSuccessStatusCode(); Assert.IsNotNull(resp.Content); var blobContent = await resp.Content.ReadAsByteArrayAsync(); CollectionAssert.AreEqual(TestImage, blobContent); }