Created Windows Service
This commit is contained in:
@ -112,6 +112,9 @@ internal class SmtpServiceTests {
|
||||
|
||||
Assert.True(await _smtpService.SendEmail(ADDRESS_LIST, ADDRESS_LIST, "subject", "body"));
|
||||
|
||||
_mockSmtpClient.Verify(s => s.Send(It.IsAny<MailMessage>()));
|
||||
string? env = Environment.GetEnvironmentVariable("FabApprovalEnvironmentName");
|
||||
|
||||
if (env is not null && !env.ToLower().Equals("development"))
|
||||
_mockSmtpClient.Verify(s => s.Send(It.IsAny<MailMessage>()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user