public static void Validate_DescriptionIsValid_DoesNotHaveError(
            OrderDescriptionModelValidator validator)
        {
            var model = new OrderDescriptionModel {
                Description = new string('A', 100)
            };

            var result = validator.TestValidate(model);

            result.ShouldNotHaveValidationErrorFor(m => m.Description);
        }
        public static void Validate_DescriptionIsTooLong_HasError(
            OrderDescriptionModelValidator validator)
        {
            var model = new OrderDescriptionModel {
                Description = new string('A', 101)
            };

            var result = validator.TestValidate(model);

            result
            .ShouldHaveValidationErrorFor(m => m.Description)
            .WithErrorMessage($"{nameof(OrderDescriptionModel.Description)}TooLong");
        }
        public static void Validate_DescriptionIsEmpty_HasError(
            string description,
            OrderDescriptionModelValidator validator)
        {
            var model = new OrderDescriptionModel {
                Description = description
            };

            var result = validator.TestValidate(model);

            result
            .ShouldHaveValidationErrorFor(m => m.Description)
            .WithErrorMessage($"{nameof(OrderDescriptionModel.Description)}Required");
        }