Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public EmailService(IPersonStorage storage)
 {
     storage.GuardAgainstNull(nameof(storage));
     this.storage = storage;
 }