public void InitializeTest() { Target = new DataFileWriter(); }
private void CreateErrorDownloadFile(EducationSecurityPrincipal user, UploadWizardCompleteModel model) { var writer = new DataFileWriter(); model.ErrorDownloadFile = new DownloadFileModel { BlobAddress = string.Format("DataFileWizardUploadErrors-{0}-{1}.txt", user.Identity.User.DisplayName, DateTime.Now.Ticks), FileName = string.Format("{0}-ErrorRows-{1}.txt", user.Identity.User.DisplayName, DateTime.Now.Ticks), }; writer.BuildTemplate(model.RowErrorValues); writer.Write(DataFileBlobContainer, model.ErrorDownloadFile.BlobAddress); }
private void UploadFileToBlobStorage(string blobAddress, Stream file) { var writer = new DataFileWriter(); writer.SetContentStream(file); writer.Write(DataFileBlobContainer, blobAddress); }