Changes in / [80e2fe0:728eb31]
- Location:
- src/FinkiChattery
- Files:
-
- 7 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FinkiChattery/FinkiChattery.Commands/Questioning/QuestioningErrorCodes.cs
r80e2fe0 r728eb31 11 11 public const string AnswerAlreadyUpvoted = "AnswerAlreadyUpvoted"; 12 12 public const string AnswerAlreadyDownvoted = "AnswerAlreadyDownvoted"; 13 public const string StudentHasBadReputation = "StudentHasBadReputation"; 14 public const string AnswerTextLengthInvalid = "AnswerTextLengthInvalid"; 15 public const string QuestionNotFound = "QuestionNotFound"; 13 public const string StudentHasBadReputation = "StudentHasBadReputation"; 16 14 } 17 15 } -
src/FinkiChattery/FinkiChattery.Commands/Questioning/Validators/QuestioningFluentValidationRules.cs
r80e2fe0 r728eb31 16 16 } 17 17 18 public static IRuleBuilderOptions<T, string> AnswerTextValidate<T>(this IRuleBuilder<T, string> ruleBuilder)19 {20 return ruleBuilder.NotNull().WithMessage(QuestioningErrorCodes.CantBeNull).MaximumLength(4000).WithMessage(QuestioningErrorCodes.AnswerTextLengthInvalid);21 }22 23 18 public static IRuleBuilderOptions<T, IEnumerable<U>> ListNotNull<T, U>(this IRuleBuilder<T, IEnumerable<U>> ruleBuilder) 24 19 { -
src/FinkiChattery/FinkiChattery.Persistence/Models/Answer.cs
r80e2fe0 r728eb31 6 6 public class Answer : BaseEntity 7 7 { 8 public Answer() : base()9 {10 CreatedOn = DateTime.UtcNow;11 VotesCount = 0;12 CorrectAnswer = false;13 }14 15 8 public string Text { get; set; } 16 9
Note:
See TracChangeset
for help on using the changeset viewer.