public PersonsApplication(ILogger logger, IIdentifierFactory idFactory, IPersonStorage storage, IEmailService emailService) { logger.GuardAgainstNull(nameof(logger)); idFactory.GuardAgainstNull(nameof(idFactory)); storage.GuardAgainstNull(nameof(storage)); emailService.GuardAgainstNull(nameof(emailService)); this.logger = logger; this.idFactory = idFactory; this.storage = storage; this.emailService = emailService; }
public EmailService(IPersonStorage storage) { storage.GuardAgainstNull(nameof(storage)); this.storage = storage; }