Changes in / [80e2fe0:728eb31]


Ignore:
Location:
src/FinkiChattery
Files:
7 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • src/FinkiChattery/FinkiChattery.Commands/Questioning/QuestioningErrorCodes.cs

    r80e2fe0 r728eb31  
    1111        public const string AnswerAlreadyUpvoted = "AnswerAlreadyUpvoted";
    1212        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";
    1614    }
    1715}
  • src/FinkiChattery/FinkiChattery.Commands/Questioning/Validators/QuestioningFluentValidationRules.cs

    r80e2fe0 r728eb31  
    1616        }
    1717
    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 
    2318        public static IRuleBuilderOptions<T, IEnumerable<U>> ListNotNull<T, U>(this IRuleBuilder<T, IEnumerable<U>> ruleBuilder)
    2419        {
  • src/FinkiChattery/FinkiChattery.Persistence/Models/Answer.cs

    r80e2fe0 r728eb31  
    66    public class Answer : BaseEntity
    77    {
    8         public Answer() : base()
    9         {
    10             CreatedOn = DateTime.UtcNow;
    11             VotesCount = 0;
    12             CorrectAnswer = false;
    13         }
    14 
    158        public string Text { get; set; }
    169
Note: See TracChangeset for help on using the changeset viewer.