コード例 #1
0
ファイル: FilesTestExtensions.cs プロジェクト: formist/LinkMe
 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
ファイル: FilesTestExtensions.cs プロジェクト: formist/LinkMe
 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;
 }
コード例 #4
0
 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
ファイル: FilesTestExtensions.cs プロジェクト: formist/LinkMe
 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
ファイル: MemberPhotosCommand.cs プロジェクト: formist/LinkMe
 public MemberPhotosCommand(IImagesCommand imagesCommand, IFilesCommand filesCommand)
 {
     _imagesCommand = imagesCommand;
     _filesCommand  = filesCommand;
 }