private void _VariablePartDtoDataMatchVariableEmailPart(EmailPartDto partDto, VariableEmailPart variablePart)
 {
     partDto.EmailId.ShouldBe(_email.Id);
     partDto.PartId.ShouldBe(variablePart.Id);
     partDto.PartType.ShouldBe(PartType.Variable);
     partDto.Html.ShouldBe(null);
     partDto.VariableValue.ShouldBe(variablePart.Value);
 }
Esempio n. 2
0
 public bool Equals(EmailPartDto other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.EmailId == EmailId && other.PartId == PartId;
 }