public ProductIsValidForImportValidation(IDomainModelMustExistsSpecification domainModelMustExistsSpecification, IDomainModelMustHaveCreationDateSpecification domainModelMustHaveCreationDateSpecification, IDomainModelMustHaveCreationUserSpecification domainModelMustHaveCreationUserSpecification, IDomainModelMustHaveIdSpecification domainModelMustHaveIdSpecification, IDomainModelMustHaveModificationDateGreaterThanCreationDateSpecification domainModelMustHaveModificationDateGreaterThanCreationDateSpecification, IDomainModelMustHaveModificationDateSpecification domainModelMustHaveModificationDateSpecification, IDomainModelMustHaveModificationUserSpecification domainModelMustHaveModificationUserSpecification, IDomainModelMustHaveTenantCodeSpecification domainModelMustHaveTenantCodeSpecification, IDomainModelMustHaveTenantCodeWithValidLengthSpecification domainModelMustHaveTenantCodeWithValidLengthSpecification, IDomainModelMustNotExistsSpecification domainModelMustNotExistsSpecification, IProductMustHaveCodeSpecification productMustHaveCodeSpecification, IProductMustHaveCodeWithValidLengthSpecification productMustHaveCodeWithValidLengthSpecification, IProductMustHaveNameSpecification productMustHaveNameSpecification, IProductMustHaveNameWithValidLengthSpecification productMustHaveNameWithValidLengthSpecification ) : base(domainModelMustExistsSpecification, domainModelMustHaveCreationDateSpecification, domainModelMustHaveCreationUserSpecification, domainModelMustHaveIdSpecification, domainModelMustHaveModificationDateGreaterThanCreationDateSpecification, domainModelMustHaveModificationDateSpecification, domainModelMustHaveModificationUserSpecification, domainModelMustHaveTenantCodeSpecification, domainModelMustHaveTenantCodeWithValidLengthSpecification, domainModelMustNotExistsSpecification) { AddMustHaveTenantCodeSpecification(); AddMustHaveTenantCodeWithValidLengthSpecification(); AddSpecification(productMustHaveCodeSpecification); AddSpecification(productMustHaveCodeWithValidLengthSpecification); AddSpecification(productMustHaveNameSpecification); AddSpecification(productMustHaveNameWithValidLengthSpecification); }
public ProductSpecifications( IProductMustHaveCodeSpecification productMustHaveCodeSpecification, IProductMustHaveCodeWithValidLengthSpecification productMustHaveCodeWithValidLengthSpecification, IProductMustHaveDescriptionWithValidLengthSpecification productMustHaveDescriptionWithValidLengthSpecification, IProductMustHaveNameSpecification productMustHaveNameSpecification, IProductMustHaveNameWithValidLengthSpecification productMustHaveNameWithValidLengthSpecification) { ProductMustHaveCodeSpecification = productMustHaveCodeSpecification; ProductMustHaveCodeWithValidLengthSpecification = productMustHaveCodeWithValidLengthSpecification; ProductMustHaveDescriptionWithValidLengthSpecification = productMustHaveDescriptionWithValidLengthSpecification; ProductMustHaveNameSpecification = productMustHaveNameSpecification; ProductMustHaveNameWithValidLengthSpecification = productMustHaveNameWithValidLengthSpecification; }