Пример #1
0
 private Notification CreateNotification(string email, string subject, string key)
 {
     var notification = new Notification
     {
         ID = Guid.NewGuid(),
         LanguageCode = "de",
         Parameter = new Dictionary<string, string> {{"name", email}},
         Subject = subject,
         TypeKey = key,
     };
     return notification;
 }
Пример #2
0
 protected bool Equals(Notification other)
 {
     bool parameterEqual = Parameter.Count == other.Parameter.Count && !Parameter.Except(other.Parameter).Any();
     return parameterEqual && ID.Equals(other.ID) && string.Equals(TypeKey, other.TypeKey) && string.Equals(LanguageCode, other.LanguageCode) && string.Equals(Subject, other.Subject) && Dispatched.Equals(other.Dispatched);
 }