public static IBlobImport Create(IFileUploadContext fileUploadContext, FileUploadType fileType, string storageAccountConnection) { var employerBlobStorage = new EmployerBlobStorage(storageAccountConnection); switch (fileType) { case FileUploadType.Employer: return(new EmployerBlobImport(new EmployerDataLoader(employerBlobStorage), new EmployerDataValidator())); case FileUploadType.Contact: return(new ContactBlobImport(new ContactDataLoader(employerBlobStorage), new ContactDataValidator())); case FileUploadType.Query: return(new QueryBlobImport(new QueryDataLoader(employerBlobStorage), new QueryDataValidator())); } throw new InvalidOperationException(); }
public QueryDataLoader(EmployerBlobStorage employerBlobStorage) { _employerBlobStorage = employerBlobStorage; }
public ContactDataLoader(EmployerBlobStorage employerBlobStorage) { _employerBlobStorage = employerBlobStorage; }