Created Windows Service

This commit is contained in:
Chase Tucker
2024-04-03 12:05:44 -07:00
parent 35690df362
commit 794b616293
14 changed files with 247 additions and 38 deletions

View File

@ -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>()));
}
}