Skip to content

Commit

Permalink
Don't send out email in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hbulens committed Mar 12, 2024
1 parent 1555dda commit c57c2df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public async Task ServiceCollection_DI_Obsolete_ShouldConstructAndSendMail()

ServiceProvider serviceProvider = serviceCollection.BuildServiceProvider();
IMailer mailer = serviceProvider.GetService<IMailer>();
await mailer.SendMailAsync(request);
//await mailer.SendMailAsync(request);
}

[TestMethod]
Expand Down Expand Up @@ -66,7 +66,7 @@ public async Task ServiceCollection_DI_ShouldConstructAndSendMail()
.BuildAsync();

IMailer mailer = serviceProvider.GetService<IMailer>();
await mailer.SendMailAsync(request);
//await mailer.SendMailAsync(request);
}
}
}

0 comments on commit c57c2df

Please sign in to comment.