public CustomerIsValidForImportValidation( IDomainModelMustExistsSpecification domainModelMustExistsSpecification, IDomainModelMustHaveCreationDateSpecification domainModelMustHaveCreationDateSpecification, IDomainModelMustHaveCreationUserSpecification domainModelMustHaveCreationUserSpecification, IDomainModelMustHaveIdSpecification domainModelMustHaveIdSpecification, IDomainModelMustHaveModificationDateGreaterThanCreationDateSpecification domainModelMustHaveModificationDateGreaterThanCreationDateSpecification, IDomainModelMustHaveModificationDateSpecification domainModelMustHaveModificationDateSpecification, IDomainModelMustHaveModificationUserSpecification domainModelMustHaveModificationUserSpecification, IDomainModelMustHaveTenantCodeSpecification domainModelMustHaveTenantCodeSpecification, IDomainModelMustHaveTenantCodeWithValidLengthSpecification domainModelMustHaveTenantCodeWithValidLengthSpecification, IDomainModelMustNotExistsSpecification domainModelMustNotExistsSpecification, ICustomerGovernamentalDocumentNumberMustBeUniqueSpecification customerGovernamentalDocumentNumberMustBeUniqueSpecification, ICustomerMustHaveGovernamentalDocumentNumberSpecification customerMustHaveGovernamentalDocumentNumberSpecification, ICustomerMustHaveGovernamentalDocumentNumberWithValidLengthSpecification customerMustHaveGovernamentalDocumentNumberWithValidLengthSpecification, ICustomerMustHaveNameSpecification customerMustHaveNameSpecification, ICustomerMustHaveNameWithValidLengthSpecification customerMustHaveNameWithValidLengthSpecification, ICustomerMustHaveValidGovernamentalDocumentNumberSpecification customerMustHaveValidGovernamentalDocumentNumberSpecification ) : base(domainModelMustExistsSpecification, domainModelMustHaveCreationDateSpecification, domainModelMustHaveCreationUserSpecification, domainModelMustHaveIdSpecification, domainModelMustHaveModificationDateGreaterThanCreationDateSpecification, domainModelMustHaveModificationDateSpecification, domainModelMustHaveModificationUserSpecification, domainModelMustHaveTenantCodeSpecification, domainModelMustHaveTenantCodeWithValidLengthSpecification, domainModelMustNotExistsSpecification) { AddMustHaveTenantCodeSpecification(); AddMustHaveTenantCodeWithValidLengthSpecification(); AddSpecification(customerGovernamentalDocumentNumberMustBeUniqueSpecification); AddSpecification(customerMustHaveGovernamentalDocumentNumberSpecification); AddSpecification(customerMustHaveGovernamentalDocumentNumberWithValidLengthSpecification); AddSpecification(customerMustHaveNameSpecification); AddSpecification(customerMustHaveNameWithValidLengthSpecification); AddSpecification(customerMustHaveValidGovernamentalDocumentNumberSpecification); }
public CustomerSpecifications( ICustomerMustHaveCodeSpecification customerMustHaveCodeSpecification, ICustomerMustHaveCodeWithValidLengthSpecification customerMustHaveCodeWithValidLengthSpecification, ICustomerMustHaveBirthDateSpecification customerMustHaveBirthDateSpecification, ICustomerMustHaveLegalAgeSpecification customerMustHaveLegalAgeSpecification, ICustomerMustHaveNameSpecification customerMustHaveNameSpecification, ICustomerMustHaveNameWithValidLengthSpecification customerMustHaveNameWithValidLengthSpecification, ICustomerMustHaveUniqueCodeSpecification customerMusthaveUniqueCodeSpecification ) { CustomerMustHaveCodeSpecification = customerMustHaveCodeSpecification; CustomerMustHaveCodeWithValidLengthSpecification = customerMustHaveCodeWithValidLengthSpecification; CustomerMustHaveBirthDateSpecification = customerMustHaveBirthDateSpecification; CustomerMustHaveLegalAgeSpecification = customerMustHaveLegalAgeSpecification; CustomerMustHaveNameSpecification = customerMustHaveNameSpecification; CustomerMustHaveNameWithValidLengthSpecification = customerMustHaveNameWithValidLengthSpecification; CustomerMustHaveUniqueCodeSpecification = customerMusthaveUniqueCodeSpecification; }