Exemplo n.º 1
0
 public static FileReference CreateTestFile(this IFilesCommand filesCommand, int index, FileType fileType)
 {
     using (var stream = new MemoryStream(new ASCIIEncoding().GetBytes(string.Format(ContentsFormat, index))))
     {
         return(filesCommand.SaveFile(fileType, new StreamFileContents(stream), string.Format(FileNameFormat, index)));
     }
 }
Exemplo n.º 2
0
 public static FileReference CreateTestPhoto(this IFilesCommand filesCommand, int index, FileType fileType)
 {
     using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(typeof(FilesTestExtensions), "TestPhoto.jpg"))
     {
         return(filesCommand.SaveFile(fileType, new StreamFileContents(stream), string.Format(PhotoFileNameFormat, index)));
     }
 }
Exemplo n.º 3
0
 public ResumesApiController(IFilesCommand filesCommand, IFilesQuery filesQuery, ICandidateResumeFilesCommand candidateResumeFilesCommand, IParseResumesCommand parseResumesCommand, IParsedResumesCommand parsedResumesCommand)
 {
     _filesCommand = filesCommand;
     _filesQuery   = filesQuery;
     _candidateResumeFilesCommand = candidateResumeFilesCommand;
     _parseResumesCommand         = parseResumesCommand;
     _parsedResumesCommand        = parsedResumesCommand;
 }
 public EmployerMemberContactsCommand(IEmployerContactsRepository repository, IEmployerMemberViewsCommand employerMemberViewsCommand, IMemberContactsQuery memberContactsQuery, IFilesCommand filesCommand, IFilesQuery filesQuery)
 {
     _repository = repository;
     _employerMemberViewsCommand = employerMemberViewsCommand;
     _memberContactsQuery        = memberContactsQuery;
     _filesCommand = filesCommand;
     _filesQuery   = filesQuery;
 }
Exemplo n.º 5
0
        protected FilesTests()
        {
            var repository        = new FilesRepository(Resolve <IDataContextFactory>());
            var storageRepository = new FilesStorageRepository("C:\\LinkMe\\UserFiles");

            _filesCommand = new FilesCommand(repository, storageRepository);
            _filesQuery   = new FilesQuery(repository, storageRepository);
        }
Exemplo n.º 6
0
 public ProfilesApiController(ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IResumesQuery resumesQuery, ICandidatesQuery candidatesQuery, IResumeFilesQuery resumeFilesQuery, IMemberStatusQuery memberStatusQuery, IEmailsCommand emailsCommand, IMemberAccountsCommand memberAccountsCommand, IAccountVerificationsCommand accountVerificationsCommand, ICandidatesCommand candidatesCommand, ICandidateResumesCommand candidateResumesCommand, ICandidateResumeFilesCommand candidateResumeFilesCommand, IParseResumesCommand parseResumesCommand, IMemberPhotosCommand memberPhotosCommand, IFilesCommand filesCommand, IFilesQuery filesQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand)
 {
     _locationQuery               = locationQuery;
     _industriesQuery             = industriesQuery;
     _resumesQuery                = resumesQuery;
     _candidatesQuery             = candidatesQuery;
     _resumeFilesQuery            = resumeFilesQuery;
     _memberStatusQuery           = memberStatusQuery;
     _emailsCommand               = emailsCommand;
     _memberAccountsCommand       = memberAccountsCommand;
     _accountVerificationsCommand = accountVerificationsCommand;
     _candidatesCommand           = candidatesCommand;
     _candidateResumesCommand     = candidateResumesCommand;
     _candidateResumeFilesCommand = candidateResumeFilesCommand;
     _parseResumesCommand         = parseResumesCommand;
     _memberPhotosCommand         = memberPhotosCommand;
     _filesCommand                = filesCommand;
     _filesQuery      = filesQuery;
     _settingsQuery   = settingsQuery;
     _settingsCommand = settingsCommand;
 }
Exemplo n.º 7
0
 public static FileReference CreateTestFile(this IFilesCommand filesCommand, FileType fileType)
 {
     return(filesCommand.CreateTestFile(1, fileType));
 }
Exemplo n.º 8
0
 public EmployerLogosCommand(IImagesCommand imagesCommand, IFilesCommand filesCommand)
 {
     _imagesCommand = imagesCommand;
     _filesCommand  = filesCommand;
 }
Exemplo n.º 9
0
 public MemberPhotosCommand(IImagesCommand imagesCommand, IFilesCommand filesCommand)
 {
     _imagesCommand = imagesCommand;
     _filesCommand  = filesCommand;
 }