Skip to content

Commit

Permalink
words
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Dec 23, 2024
1 parent 45f4cc0 commit 672fa5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,11 @@ public CreateDialogDialogActivityDtoValidator(
.When(x => x.Type != DialogActivityType.Values.Information);
RuleFor(x => x.TransmissionId)
.Null()
.WithMessage($"Only {nameof(DialogActivityType.Values.TransmissionOpened)} activity can reference a transmission.")
.WithMessage($"Only activities of type {nameof(DialogActivityType.Values.TransmissionOpened)} can reference a transmission.")
.When(x => x.Type != DialogActivityType.Values.TransmissionOpened);
RuleFor(x => x.TransmissionId)
.NotEmpty()
.WithMessage($"A {nameof(DialogActivityType.Values.TransmissionOpened)} needs to reference a transmission.")
.WithMessage($"An activity of type {nameof(DialogActivityType.Values.TransmissionOpened)} needs to reference a transmission.")
.When(x => x.Type == DialogActivityType.Values.TransmissionOpened);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ public UpdateDialogDialogActivityDtoValidator(
.When(x => x.Type != DialogActivityType.Values.Information);
RuleFor(x => x.TransmissionId)
.Null()
.WithMessage($"Only {nameof(DialogActivityType.Values.TransmissionOpened)} activity can reference a transmission.")
.WithMessage($"Only activities of type {nameof(DialogActivityType.Values.TransmissionOpened)} can reference a transmission.")
.When(x => x.Type != DialogActivityType.Values.TransmissionOpened);
RuleFor(x => x.TransmissionId)
.NotEmpty()
.WithMessage($"A {nameof(DialogActivityType.Values.TransmissionOpened)} needs to reference a transmission.")
.WithMessage($"An activity of type {nameof(DialogActivityType.Values.TransmissionOpened)} needs to reference a transmission.")
.When(x => x.Type == DialogActivityType.Values.TransmissionOpened);
}
}

0 comments on commit 672fa5f

Please sign in to comment.