public EnvironmentVerification VerifyEnvironment() { EnvironmentVerification env = new EnvironmentVerification(); SendGridSettings settings = GetSettings(); if (string.IsNullOrEmpty(settings.ApiKey)) { env.VerificationItems.Add(VerificationType.Error, "Missing api key setting for SendGrid."); } return(env); }
public EnvironmentVerification VerifyEnvironment() { EnvironmentVerification env = new EnvironmentVerification(); SendGridSettings settings = GetSettings(); if (string.IsNullOrEmpty(settings.Username)) { env.VerificationItems.Add(VerificationType.Error, "Missing username setting in SendGrid connection string."); } if (string.IsNullOrEmpty(settings.Password)) { env.VerificationItems.Add(VerificationType.Error, "Missing password setting in SendGrid connection string."); } return(env); }