Exemplo n.º 1
0
        public EmailNotificationMessage <GenericNotificationObject> BuildGenericNotification(string costNumber, string body, string subject, string gdamUserId, string[] additionalEmails = null)
        {
            var header = $"Cost {costNumber}";

            var notificationBuilder = new GenericNotificationBuilder();

            return(notificationBuilder.Build(gdamUserId, subject, header, body, additionalEmails));
        }
Exemplo n.º 2
0
        public EmailNotificationMessage <GenericNotificationObject> BuildGenericErrorNotification(string costNumber, string errorMessage, string gdamUserId, string[] additionalEmails = null)
        {
            var body    = errorMessage;
            var header  = $"Cost {costNumber}";
            var subject = $"Technical issue with Cost {costNumber}";

            var notificationBuilder = new GenericNotificationBuilder();

            return(notificationBuilder.Build(gdamUserId, subject, header, body, additionalEmails));
        }