public void When_ContentTypeIsDescriptionAnd51SymbolsPassed_Expect_MaxLengthErrorIsNtThrown() { var content = new EarnRuleContentEditRequest() { RuleContentType = RuleContentType.Description, Value = new string('a', 51) }; _contentCreateRequestValidator.ShouldNotHaveValidationErrorFor(c => c.Value, content); }
public void When_ContentTypeIsDescription_Expect_MaxLengthIs1000ErrorIsThrown() { var content = new EarnRuleContentEditRequest() { RuleContentType = RuleContentType.Description, Value = new string('a', 1001) }; _contentCreateRequestValidator.ShouldHaveValidationErrorFor(c => c.Value, content); }