private static IEnumerable <BaseEvent> AllEvents(EventSetup model)
 {
     return(EnumerableHelper.Iterate <BaseEvent>(
                model?.AdjustPaycheckTotalEvents,
                model?.AdjustSnowballAmountEvents,
                model?.ChangeBillPaymentEvents));
 }
        public static IEnumerable <BaseEvent> All(this EventSetup events)
        {
            foreach (var item in events.AdjustPaycheckTotalEvents)
            {
                yield return(item);
            }

            foreach (var item in events.AdjustSnowballAmountEvents)
            {
                yield return(item);
            }

            foreach (var item in events.ChangeBillPaymentEvents)
            {
                yield return(item);
            }
        }
 public EventSetupViewModel(ProfileViewModel profile, EventSetup model)
     : base(profile, AllEvents(model))
 {
 }