public string GetCertificatesFileName(AwardsPeriod awardsPeriod) { if (awardsPeriod == null) { throw new ArgumentNullException(nameof(awardsPeriod)); } return($@"{awardsPeriod.FileNamePrefix}_{FileNameIdentifier}_Certificates.docx"); }
public WorkingDirectoryPath GetWorkingDirectory(AwardsPeriod awardsPeriod) { if (awardsPeriod == null) { throw new ArgumentNullException(nameof(awardsPeriod)); } return(WorkingDirectoryPath.Create(this, awardsPeriod)); }
public string GetVotingKeyFileName(AwardsPeriod awardsPeriod) { if (awardsPeriod == null) { throw new ArgumentNullException(nameof(awardsPeriod)); } return($@"{awardsPeriod.FileNamePrefix}_{FileNameIdentifier}_VotingKey.xlsx"); }
public string GetNomineesForMemoFileName(AwardsPeriod awardsPeriod) { if (awardsPeriod == null) { throw new ArgumentNullException(nameof(awardsPeriod)); } return($@"{awardsPeriod.FileNamePrefix}_{FileNameIdentifier}_NomineesForMemo.xlsx"); }
internal static WorkingDirectoryPath Create(DirectoryPath directoryPath, AwardsPeriod awardsPeriod) { if (directoryPath == null) { throw new ArgumentNullException(nameof(directoryPath)); } if (awardsPeriod == null) { throw new ArgumentNullException(nameof(awardsPeriod)); } return(new WorkingDirectoryPath(directoryPath, awardsPeriod)); }
private WorkingDirectoryPath(DirectoryPath directoryPath, AwardsPeriod awardsPeriod) : base(GetDirectoryPath(directoryPath, awardsPeriod)) { AwardsPeriod = awardsPeriod; }
private static string GetDirectoryPath(DirectoryPath directoryPath, AwardsPeriod awardsPeriod) { return(Path.Combine(directoryPath.Value, awardsPeriod.FilePathFragment)); }