public VerifyImoNumberShipCreatedDomainEventMessageHandler(
     IRepository <Ship> shipRepository,
     IInternationalMaritimeOrganizationVerifier internationalMaritimeOrganizationVerifier
     )
 {
     _shipRepository = shipRepository;
     _internationalMaritimeOrganizationVerifier = internationalMaritimeOrganizationVerifier;
 }
Esempio n. 2
0
 public virtual void VerifyImoNumber(IInternationalMaritimeOrganizationVerifier internationalMaritimeOrganizationVerifier)
 {
     IsImoNumberValid         = internationalMaritimeOrganizationVerifier.IsImoNumberValid(ImoNumber);
     HasImoNumberBeenVerified = true;
 }
Esempio n. 3
0
        public virtual async Task VerifyImoNumber(IInternationalMaritimeOrganizationVerifier internationalMaritimeOrganizationVerifier)
        {
            IsImoNumberValid = await internationalMaritimeOrganizationVerifier.IsImoNumberValid(ImoNumber);

            HasImoNumberBeenVerified = true;
        }