Пример #1
0
 public Attachment(AttachmentFields attachmentFields,int? applicantId, Applicant applicant,int? historyId, History history)
     : base(attachmentFields.Name, attachmentFields.Type, attachmentFields.Attach)
 {
     ApplicantId = applicantId;
     Applicant = Applicant;
     HistoryId = historyId;
     History = history;
 }
 public void InitHistories()
 {
     Applicant = new ApplicantWeb.Models.Applicant();
     HistoryFields = new HistoryFields(new DateTime(2015, 09, 15), ApplicantClassLibrary.TypeHistory.Interview, "Здорово!!!");
     HistoryCreate = new HistoryCreate(HistoryFields, Applicant.ApplicantId, Applicant);
     History = new History(HistoryCreate);
     HistoryEdit = new HistoryEdit(HistoryFields);
 }
        public void InitAttachments()
        {
            Attachment1 = new Attachment();

            AttachmentFields = new AttachmentFields("Файл",".txt",null);
            Applicant=new ApplicantWeb.Models.Applicant();
            Attachment2 = new Attachment(AttachmentFields,Applicant.ApplicantId,Applicant);

            History = new History();
            Attachment3 = new Attachment(AttachmentFields,Applicant.ApplicantId, Applicant, History.HistoryId, History);
        }