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();
        }
Exemplo n.º 2
0
 public QueryDataLoader(EmployerBlobStorage employerBlobStorage)
 {
     _employerBlobStorage = employerBlobStorage;
 }
Exemplo n.º 3
0
 public ContactDataLoader(EmployerBlobStorage employerBlobStorage)
 {
     _employerBlobStorage = employerBlobStorage;
 }