Exemplo n.º 1
0
        public void When_ContentTypeIsDescriptionAnd51SymbolsPassed_Expect_MaxLengthErrorIsNtThrown()
        {
            var content = new EarnRuleContentEditRequest()
            {
                RuleContentType = RuleContentType.Description,
                Value           = new string('a', 51)
            };

            _contentCreateRequestValidator.ShouldNotHaveValidationErrorFor(c => c.Value, content);
        }
Exemplo n.º 2
0
        public void When_ContentTypeIsDescription_Expect_MaxLengthIs1000ErrorIsThrown()
        {
            var content = new EarnRuleContentEditRequest()
            {
                RuleContentType = RuleContentType.Description,
                Value           = new string('a', 1001)
            };

            _contentCreateRequestValidator.ShouldHaveValidationErrorFor(c => c.Value, content);
        }