Пример #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)));
     }
 }
Пример #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)));
     }
 }
Пример #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;
 }
Пример #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);
        }
Пример #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;
 }
Пример #7
0
 public static FileReference CreateTestFile(this IFilesCommand filesCommand, FileType fileType)
 {
     return(filesCommand.CreateTestFile(1, fileType));
 }
Пример #8
0
 public EmployerLogosCommand(IImagesCommand imagesCommand, IFilesCommand filesCommand)
 {
     _imagesCommand = imagesCommand;
     _filesCommand  = filesCommand;
 }
Пример #9
0
 public MemberPhotosCommand(IImagesCommand imagesCommand, IFilesCommand filesCommand)
 {
     _imagesCommand = imagesCommand;
     _filesCommand  = filesCommand;
 }