AmazonSimpleEmailServiceClient will need to be mocked, to do so.
Rough sketch:
- Create an Email Service Interface (IEmailService.cs)
- Create an AwsEmailService.cs wrapper around AmazonSimpleEmailServiceClient that implements IEmailService.
- Modify SendModeratorEmail.cs to use dependency injection.
- Add SendModeratorEmailIntegrationTests.cs that mocks IEmailService.
- Add SendSubscriberEmailIntegrationTests.cs that mocks IEmailService.
AmazonSimpleEmailServiceClient will need to be mocked, to do so.
Rough sketch: