public InitializeApplicationMenuItemCommand(IStarFisherContext context, IGlobalAddressList globalAddressList,
                                             IConfigurationStorage configurationStorage)
     : base(context, CommandTitle)
 {
     _globalAddressList    = globalAddressList ?? throw new ArgumentNullException(nameof(globalAddressList));
     _configurationStorage = configurationStorage ??
                             throw new ArgumentNullException(nameof(configurationStorage));
 }
Exemplo n.º 2
0
        public TopLevelMenuCommand(IStarFisherContext context, IReadOnlyList <IMenuItemCommand> menuItemCommands)
            : base(context, CommandTitle)
        {
            _menuItemCommands = menuItemCommands ?? throw new ArgumentNullException(nameof(menuItemCommands));

            if (_menuItemCommands.Count == 0)
            {
                throw new ArgumentException(nameof(menuItemCommands));
            }
        }
Exemplo n.º 3
0
            public Configuration(IStarFisherContext context) : this()
            {
                if (context == null)
                {
                    throw new ArgumentNullException(nameof(context));
                }

                StarAwardsDirectoryPath = context.StarAwardsDirectoryPath.Value;
                AwardsPeriod            = context.AwardsPeriod.Value;
                EiaCoChair1             = Convert(context.EiaCoChair1);
                EiaCoChair2             = Convert(context.EiaCoChair2);
                HrPeople = Convert(context.HrPeople);
                LuncheonPlannerPeople    = Convert(context.LuncheonPlannerPeople);
                CertificatePrinterPerson = Convert(context.CertificatePrinterPerson);
            }
Exemplo n.º 4
0
        protected MenuItemCommandBase(IStarFisherContext context, string title,
                                      string successMessage = @"Operation completed successfully")
            : base(context)
        {
            if (string.IsNullOrEmpty(title))
            {
                throw new ArgumentException(nameof(title));
            }
            if (string.IsNullOrEmpty(successMessage))
            {
                throw new ArgumentException(nameof(successMessage));
            }

            Title           = title;
            _successMessage = successMessage;
        }
Exemplo n.º 5
0
 public RemoveNominationMenuItemCommand(IStarFisherContext context) : base(context, CommandTitle)
 {
 }
Exemplo n.º 6
0
 public CreateAwardVotingKeyMenuItemCommand(IStarFisherContext context, IExcelFileFactory excelFileFactory)
     : base(context, CommandTitle, GetSuccessMessage(context))
 {
     _excelFileFactory = excelFileFactory ?? throw new ArgumentNullException(nameof(excelFileFactory));
 }
 public GetStarAwardsDirectoryPathCommand(IStarFisherContext context) : base(context)
 {
 }
 public LoadNominationsFromSurveyExportMenuItemCommand(IStarFisherContext context) : base(context, CommandTitle)
 {
 }
Exemplo n.º 9
0
 public SelectAwardWinnerMenuItemCommand(IStarFisherContext context) : base(context, CommandTitle)
 {
 }
Exemplo n.º 10
0
 public FixNomineesMenuItemCommand(IStarFisherContext context,
                                   IGlobalAddressList globalAddressList) :
     base(context, CommandTitle)
 {
     _globalAddressList = globalAddressList ?? throw new ArgumentNullException(nameof(globalAddressList));
 }
Exemplo n.º 11
0
 public GetQuarterCommand(IStarFisherContext context) : base(context)
 {
 }
 public FixNomineeEmailAddressesCommand(IStarFisherContext context, IGlobalAddressList globalAddressList)
     : base(context)
 {
     _globalAddressList = globalAddressList ?? throw new ArgumentNullException(nameof(globalAddressList));
 }
Exemplo n.º 13
0
 public DisqualifyNomineesMenuItemCommand(IStarFisherContext context)
     : base(context, CommandTitle)
 {
 }
Exemplo n.º 14
0
 protected InitializeCommandBase(IStarFisherContext context) : base(context)
 {
 }
 public FixNomineeOfficeLocationsCommand(IStarFisherContext context) : base(context)
 {
 }
Exemplo n.º 16
0
 protected CommandBase(IStarFisherContext context)
 {
     Context = context ?? StarFisherContext.Instance;
 }
Exemplo n.º 17
0
 public GetYearCommand(IStarFisherContext context) : base(context)
 {
 }
 public CreateHumanResourceNomineeValidationEmailMenuItemCommand(IStarFisherContext context,
                                                                 IEmailFactory emailFactory)
     : base(context, CommandTitle, SuccessMessage)
 {
     _emailFactory = emailFactory ?? throw new ArgumentNullException(nameof(emailFactory));
 }
 public SendNominationNotificationEmailsMenuItemCommand(IStarFisherContext context,
                                                        IMailMergeFactory mailMergeFactory)
     : base(context, CommandTitle, SuccessMessage)
 {
     _mailMergeFactory = mailMergeFactory ?? throw new ArgumentNullException(nameof(mailMergeFactory));
 }
 public CreateVotingKeyEmailMenuItemCommand(IStarFisherContext context, IEmailFactory emailFactory)
     : base(context, CommandTitle, SuccessMessage)
 {
     _emailFactory = emailFactory ?? throw new ArgumentNullException(nameof(emailFactory));
 }
Exemplo n.º 21
0
 public ExitCommand(IStarFisherContext context) : base(context, CommandTitle)
 {
 }
Exemplo n.º 22
0
 public FixNomineeWriteUpsMenuItemCommand(IStarFisherContext context) : base(context, CommandTitle)
 {
 }
Exemplo n.º 23
0
 public CreateStarAwardsMemoArtifactsMenuItemCommand(IStarFisherContext context,
                                                     IStarAwardsMemoHelper memoHelper)
     : base(context, CommandTitle, GetSuccessMessage(context))
 {
     _memoHelper = memoHelper ?? throw new ArgumentNullException(nameof(memoHelper));
 }
Exemplo n.º 24
0
 public GetPersonNameCommand(IStarFisherContext context, IGlobalAddressList globalAddressList) : base(context)
 {
     _globalAddressList = globalAddressList ?? throw new ArgumentNullException(nameof(globalAddressList));
 }
Exemplo n.º 25
0
 public CreateAwardVotingGuideMenuItemCommand(IStarFisherContext context, IMailMergeFactory mailMergeFactory)
     : base(context, CommandTitle, GetSuccessMessage(context))
 {
     _mailMergeFactory = mailMergeFactory ?? throw new ArgumentNullException(nameof(mailMergeFactory));
 }