public MemberRegistrationBusinessValidator(IProducerNameChange producerNameWarning, 
     IAnnualTurnoverMismatch annualTurnoverMismatch, 
     IProducerAlreadyRegistered producerAlreadyRegistered, 
     IProducerNameAlreadyRegistered producerNameAlreadyRegistered,
     IDuplicateProducerRegistrationNumbers duplicateProducerRegistrationNumbers,
     IDuplicateProducerNames duplicateProducerNames,
     ICorrectSchemeApprovalNumber correctSchemeApprovalNumber,
     IAmendmentHasNoProducerRegistrationNumber amendmentHasNoProducerRegistrationNumber,
     IInsertHasProducerRegistrationNumber insertHasProducerRegistrationNumber,
     IUkBasedAuthorisedRepresentative ukBasedAuthorisedRepresentative,
     IProducerRegistrationNumberValidity producerRegistrationNumberValidity,
     IEnsureAnOverseasProducerIsNotBasedInTheUK ensureAnOverseasProducerIsNotBasedInTheUK,
     IProducerChargeBandChange producerChargeBandChangeWarning,
     ICompanyAlreadyRegistered companyAlreadyRegistered,
     ICompanyRegistrationNumberChange companyRegistrationNumberChange,
     Func<Guid, string, IProducerObligationTypeChange> producerObligationTypeChangeDelegate)
 {
     this.producerNameWarning = producerNameWarning;
     this.annualTurnoverMismatch = annualTurnoverMismatch;
     this.producerAlreadyRegistered = producerAlreadyRegistered;
     this.producerNameAlreadyRegistered = producerNameAlreadyRegistered;
     this.duplicateProducerRegistrationNumbers = duplicateProducerRegistrationNumbers;
     this.duplicateProducerNames = duplicateProducerNames;
     this.correctSchemeApprovalNumber = correctSchemeApprovalNumber;
     this.amendmentHasNoProducerRegistrationNumber = amendmentHasNoProducerRegistrationNumber;
     this.insertHasProducerRegistrationNumber = insertHasProducerRegistrationNumber;
     this.ukBasedAuthorisedRepresentative = ukBasedAuthorisedRepresentative;
     this.producerRegistrationNumberValidity = producerRegistrationNumberValidity;
     this.ensureAnOverseasProducerIsNotBasedInTheUK = ensureAnOverseasProducerIsNotBasedInTheUK;
     this.producerChargeBandChangeWarning = producerChargeBandChangeWarning;
     this.companyAlreadyRegistered = companyAlreadyRegistered;
     this.companyRegistrationNumberChange = companyRegistrationNumberChange;
     this.producerObligationTypeChangeDelegate = producerObligationTypeChangeDelegate;
 }
 public MemberRegistrationBusinessValidator(IProducerNameChange producerNameWarning,
                                            IAnnualTurnoverMismatch annualTurnoverMismatch,
                                            IProducerAlreadyRegistered producerAlreadyRegistered,
                                            IProducerNameAlreadyRegistered producerNameAlreadyRegistered,
                                            IDuplicateProducerRegistrationNumbers duplicateProducerRegistrationNumbers,
                                            IDuplicateProducerNames duplicateProducerNames,
                                            ICorrectSchemeApprovalNumber correctSchemeApprovalNumber,
                                            IAmendmentHasNoProducerRegistrationNumber amendmentHasNoProducerRegistrationNumber,
                                            IInsertHasProducerRegistrationNumber insertHasProducerRegistrationNumber,
                                            IUkBasedAuthorisedRepresentative ukBasedAuthorisedRepresentative,
                                            IProducerRegistrationNumberValidity producerRegistrationNumberValidity,
                                            IEnsureAnOverseasProducerIsNotBasedInTheUK ensureAnOverseasProducerIsNotBasedInTheUK,
                                            IProducerChargeBandChange producerChargeBandChangeWarning,
                                            ICompanyAlreadyRegistered companyAlreadyRegistered,
                                            ICompanyRegistrationNumberChange companyRegistrationNumberChange,
                                            Func <Guid, string, IProducerObligationTypeChange> producerObligationTypeChangeDelegate)
 {
     this.producerNameWarning                       = producerNameWarning;
     this.annualTurnoverMismatch                    = annualTurnoverMismatch;
     this.producerAlreadyRegistered                 = producerAlreadyRegistered;
     this.producerNameAlreadyRegistered             = producerNameAlreadyRegistered;
     this.duplicateProducerRegistrationNumbers      = duplicateProducerRegistrationNumbers;
     this.duplicateProducerNames                    = duplicateProducerNames;
     this.correctSchemeApprovalNumber               = correctSchemeApprovalNumber;
     this.amendmentHasNoProducerRegistrationNumber  = amendmentHasNoProducerRegistrationNumber;
     this.insertHasProducerRegistrationNumber       = insertHasProducerRegistrationNumber;
     this.ukBasedAuthorisedRepresentative           = ukBasedAuthorisedRepresentative;
     this.producerRegistrationNumberValidity        = producerRegistrationNumberValidity;
     this.ensureAnOverseasProducerIsNotBasedInTheUK = ensureAnOverseasProducerIsNotBasedInTheUK;
     this.producerChargeBandChangeWarning           = producerChargeBandChangeWarning;
     this.companyAlreadyRegistered                  = companyAlreadyRegistered;
     this.companyRegistrationNumberChange           = companyRegistrationNumberChange;
     this.producerObligationTypeChangeDelegate      = producerObligationTypeChangeDelegate;
 }
 public MemberRegistrationBusinessValidatorTests()
 {
     producerNameWarning                       = A.Fake <IProducerNameChange>();
     annualTurnoverMismatch                    = A.Fake <IAnnualTurnoverMismatch>();
     producerAlreadyRegistered                 = A.Fake <IProducerAlreadyRegistered>();
     producerNameAlreadyRegistered             = A.Fake <IProducerNameAlreadyRegistered>();
     duplicateProducerRegistrationNumbers      = A.Fake <IDuplicateProducerRegistrationNumbers>();
     duplicateProducerNames                    = A.Fake <IDuplicateProducerNames>();
     correctSchemeApprovalNumber               = A.Fake <ICorrectSchemeApprovalNumber>();
     amendmentHasNoProducerRegistrationNumber  = A.Fake <IAmendmentHasNoProducerRegistrationNumber>();
     insertHasProducerRegistrationNumber       = A.Fake <IInsertHasProducerRegistrationNumber>();
     ukBasedAuthorisedRepresentative           = A.Fake <IUkBasedAuthorisedRepresentative>();
     producerRegistrationNumberValidity        = A.Fake <IProducerRegistrationNumberValidity>();
     ensureAnOverseasProducerIsNotBasedInTheUK = A.Fake <IEnsureAnOverseasProducerIsNotBasedInTheUK>();
     producerChargeBandChangeWarning           = A.Fake <IProducerChargeBandChange>();
     companyAlreadyRegistered                  = A.Fake <ICompanyAlreadyRegistered>();
     companyRegistrationNumberChange           = A.Fake <ICompanyRegistrationNumberChange>();
     producerObligationTypeChange              = A.Fake <IProducerObligationTypeChange>();
 }
 public MemberRegistrationBusinessValidatorTests()
 {
     producerNameWarning = A.Fake<IProducerNameChange>();
     annualTurnoverMismatch = A.Fake<IAnnualTurnoverMismatch>();
     producerAlreadyRegistered = A.Fake<IProducerAlreadyRegistered>();
     producerNameAlreadyRegistered = A.Fake<IProducerNameAlreadyRegistered>();
     duplicateProducerRegistrationNumbers = A.Fake<IDuplicateProducerRegistrationNumbers>();
     duplicateProducerNames = A.Fake<IDuplicateProducerNames>();
     correctSchemeApprovalNumber = A.Fake<ICorrectSchemeApprovalNumber>();
     amendmentHasNoProducerRegistrationNumber = A.Fake<IAmendmentHasNoProducerRegistrationNumber>();
     insertHasProducerRegistrationNumber = A.Fake<IInsertHasProducerRegistrationNumber>();
     ukBasedAuthorisedRepresentative = A.Fake<IUkBasedAuthorisedRepresentative>();
     producerRegistrationNumberValidity = A.Fake<IProducerRegistrationNumberValidity>();
     ensureAnOverseasProducerIsNotBasedInTheUK = A.Fake<IEnsureAnOverseasProducerIsNotBasedInTheUK>();
     producerChargeBandChangeWarning = A.Fake<IProducerChargeBandChange>();
     companyAlreadyRegistered = A.Fake<ICompanyAlreadyRegistered>();
     companyRegistrationNumberChange = A.Fake<ICompanyRegistrationNumberChange>();
     producerObligationTypeChange = A.Fake<IProducerObligationTypeChange>();
 }