コード例 #1
0
 public UseCase(
     IEmailNotificationPort emailNotificationPort,
     ITemplateRenderProviderPort templateRenderProviderPort,
     ITemplateRepositoryPort templateRepositoryPort)
 {
     _dispatchNotificationRule         = new DispatchNotificationRule(emailNotificationPort);
     _retrieveTemplateRule             = new RetrieveTemplateRule(templateRepositoryPort);
     _makeDispatchDataNotificationRule = new MakeDispatchDataNotificationRule(templateRenderProviderPort);
 }
コード例 #2
0
 public DispatchNotificationRule(IEmailNotificationPort emailNotificationPort)
 {
     _emailNotificationPort = emailNotificationPort;
 }