Ejemplo n.º 1
0
        public string GetCertificatesFileName(AwardsPeriod awardsPeriod)
        {
            if (awardsPeriod == null)
            {
                throw new ArgumentNullException(nameof(awardsPeriod));
            }

            return($@"{awardsPeriod.FileNamePrefix}_{FileNameIdentifier}_Certificates.docx");
        }
Ejemplo n.º 2
0
        public WorkingDirectoryPath GetWorkingDirectory(AwardsPeriod awardsPeriod)
        {
            if (awardsPeriod == null)
            {
                throw new ArgumentNullException(nameof(awardsPeriod));
            }

            return(WorkingDirectoryPath.Create(this, awardsPeriod));
        }
Ejemplo n.º 3
0
        public string GetVotingKeyFileName(AwardsPeriod awardsPeriod)
        {
            if (awardsPeriod == null)
            {
                throw new ArgumentNullException(nameof(awardsPeriod));
            }

            return($@"{awardsPeriod.FileNamePrefix}_{FileNameIdentifier}_VotingKey.xlsx");
        }
Ejemplo n.º 4
0
        public string GetNomineesForMemoFileName(AwardsPeriod awardsPeriod)
        {
            if (awardsPeriod == null)
            {
                throw new ArgumentNullException(nameof(awardsPeriod));
            }

            return($@"{awardsPeriod.FileNamePrefix}_{FileNameIdentifier}_NomineesForMemo.xlsx");
        }
Ejemplo n.º 5
0
        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));
        }
Ejemplo n.º 6
0
 private WorkingDirectoryPath(DirectoryPath directoryPath, AwardsPeriod awardsPeriod)
     : base(GetDirectoryPath(directoryPath, awardsPeriod))
 {
     AwardsPeriod = awardsPeriod;
 }
Ejemplo n.º 7
0
 private static string GetDirectoryPath(DirectoryPath directoryPath, AwardsPeriod awardsPeriod)
 {
     return(Path.Combine(directoryPath.Value, awardsPeriod.FilePathFragment));
 }