public void AddReport_WithExistingReport_ReturnsFalse() { ReportEmailConfiguration report = new ReportEmailConfiguration(EmailReportingConfigurationData.REPORT_NAME, EmailReportingConfigurationData.SUBJECT); _configuration = new EmailReportingConfiguration(); _configuration.AddReport(report); bool added = _configuration.AddReport(report); Assert.IsFalse(added); }
public void GetReportEmailConfiguration_WithExistingReport_ReturnsConfiguration() { ReportEmailConfiguration report = new ReportEmailConfiguration(EmailReportingConfigurationData.REPORT_NAME, EmailReportingConfigurationData.SUBJECT); _configuration = new EmailReportingConfiguration(); _configuration.AddReport(report); ReportEmailConfiguration retrieved = _configuration.GetReportEmailConfiguration(EmailReportingConfigurationData.REPORT_NAME); Assert.IsNotNull(retrieved); }