private static bool CheckIfEqual(ScenarioCampaignMetricItem expected, ScenarioCampaignMetricItem result)
 {
     return(expected.CampaignExternalId == result.CampaignExternalId &&
            expected.TotalSpots == result.TotalSpots &&
            expected.ZeroRatedSpots == result.ZeroRatedSpots &&
            expected.NominalValue == result.NominalValue &&
            expected.TotalNominalValue == result.TotalNominalValue &&
            expected.DifferenceValueDelivered == result.DifferenceValueDelivered &&
            expected.DifferenceValueDeliveredPercentage == result.DifferenceValueDeliveredPercentage);
 }
Esempio n. 2
0
 private static void ApplyKPIsToScenarioCampaign(CampaignWithProductFlatModel campaign, ScenarioCampaignMetricItem scenarioCampaignMetrics)
 {
     campaign.TotalSpots                         = scenarioCampaignMetrics.TotalSpots;
     campaign.ZeroRatedSpots                     = scenarioCampaignMetrics.ZeroRatedSpots;
     campaign.NominalValue                       = scenarioCampaignMetrics.NominalValue;
     campaign.TotalNominalValue                  = scenarioCampaignMetrics.TotalNominalValue;
     campaign.DifferenceValueDelivered           = scenarioCampaignMetrics.DifferenceValueDelivered;
     campaign.DifferenceValueDeliveredPercentage = scenarioCampaignMetrics.DifferenceValueDeliveredPercentage;
 }