public static void Validate_OrganisationIdIsValid_DoesNotHaveError(
            CreateOrderModel model,
            CreateOrderModelValidator validator)
        {
            var result = validator.TestValidate(model);

            result.ShouldNotHaveValidationErrorFor(m => m.OrganisationId);
        }
        public static void Validate_DescriptionIsValid_DoesNotHaveError(
            CreateOrderModelValidator validator)
        {
            var model = new CreateOrderModel {
                Description = new string('A', 10)
            };

            var result = validator.TestValidate(model);

            result.ShouldNotHaveValidationErrorFor(m => m.Description);
        }
        public static void Validate_OrganisationIdIsEmptyGuid_HasError(
            CreateOrderModelValidator validator)
        {
            var model = new CreateOrderModel {
                OrganisationId = Guid.Empty
            };

            var result = validator.TestValidate(model);

            result
            .ShouldHaveValidationErrorFor(m => m.OrganisationId)
            .WithErrorMessage($"{nameof(CreateOrderModel.OrganisationId)}Required");
        }
        public static void Validate_DescriptionIsTooLong_HasError(
            CreateOrderModelValidator validator)
        {
            var model = new CreateOrderModel {
                Description = new string('A', 101)
            };

            var result = validator.TestValidate(model);

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

            var result = validator.TestValidate(model);

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