示例#1
0
 public PersonsApplication(ILogger logger, IIdentifierFactory idFactory, IPersonsStorage 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;
 }
示例#2
0
 public EmailService(IPersonsStorage storage)
 {
     storage.GuardAgainstNull(nameof(storage));
     this.storage = storage;
 }