Beispiel #1
0
        /// <summary>
        /// Create a new List with new instances of NotificationTemplates.
        /// </summary>
        /// <param name="context"></param>
        /// <param name="startId"></param>
        /// <param name="count"></param>
        /// <param name="agency"></param>
        /// <param name="status"></param>
        /// <returns></returns>
        public static List <Entity.NotificationTemplate> CreateNotificationTemplates(this PimsContext context, int startId, int count, string name = "test")
        {
            var templates = new List <Entity.NotificationTemplate>(count);

            for (var i = startId; i < (startId + count); i++)
            {
                templates.Add(context.CreateNotificationTemplate(i, $"{name}-{i}"));
            }
            return(templates);
        }