示例#1
0
        public bool IsApplicableToLogin(MockLogin login)
        {
            if (login == null)
            {
                return(false);
            }

            return(login.LoginRoleType == MockLogin.EnumLoginRoleType.JobSeeker);
        }
示例#2
0
        public bool IsApplicableToLogin(MockLogin login)
        {
            if (login == null)
            {
                return(false);
            }

            return(login.LoginRoleType == MockLogin.EnumLoginRoleType.JobSeeker &&
                   login.CreateDateTime < CreatedBeforeDate);
        }
        public IEnumerable <IUserNotification> GetNotificationsForLogin(MockLogin login)
        {
            List <IUserNotification> notificationsList = new List <IUserNotification>();

            // Get list of all notifications and build Notifications using the factory
            foreach (var item in _notificationListMockDatabase)
            {
                switch (item.TypeEnum)
                {
                case EnumNotificationType.Banner:
                default:
                    notificationsList.Add(BannerFactory.GetBanner(item));
                    break;
                }
            }

            return(notificationsList.Where(c => c.IsApplicableToLogin(login)));
        }