()
| 24 | } |
| 25 | |
| 26 | private AmazonSimpleEmailServiceClient CreateClient() |
| 27 | { |
| 28 | if (_env.IsProduction) |
| 29 | return new AmazonSimpleEmailServiceClient(); |
| 30 | |
| 31 | var chain = new CredentialProfileStoreChain(); |
| 32 | if (!chain.TryGetAWSCredentials("aptabase", out var credentials)) |
| 33 | throw new Exception("Failed to find the aptabase profile"); |
| 34 | |
| 35 | return new AmazonSimpleEmailServiceClient(credentials, Amazon.RegionEndpoint.USEast1); |
| 36 | } |
| 37 | |
| 38 | private static SendEmailRequest NewRequest(string to, string subject, string body) |
| 39 | { |
no outgoing calls
no test coverage detected