Esempio n. 1
0
 public OutcomeRepository(IDefinitionManager <IOutcomeDefinition> outcomeDefinitionManager, ITaxonomyManagerProvider taxonomyManagerProvider)
 {
     this.outcomeDefinitionManager    = outcomeDefinitionManager;
     this.outcomeGroupTaxonomyManager = taxonomyManagerProvider.GetOutcomeGroupManager();
 }
Esempio n. 2
0
 public CampaignRepository(ITaxonomyManagerProvider taxonomyManagerProvider, IDefinitionManager <ICampaignActivityDefinition> campaignDefinitionManager)
 {
     this.channelTaxonomyManager    = taxonomyManagerProvider.GetChannelManager();
     this.campaignDefinitionManager = campaignDefinitionManager;
 }
Esempio n. 3
0
        public void GetCurrent_NoCampaign_ReturnsNull(CurrentInteraction currentInteraction, ITracker tracker, ITaxonomyManagerProvider taxonomyManagerProvider, IDefinitionManager <ICampaignActivityDefinition> definitionManager)
        {
            //Arrange
            tracker.Interaction.Returns(currentInteraction);
            tracker.Interaction.CampaignId = null;
            var campaignRepository = new CampaignRepository(taxonomyManagerProvider, definitionManager);

            using (new TrackerSwitcher(tracker))
            {
                //Act
                var result = campaignRepository.GetCurrent();
                //Assert
                result.Should().BeNull();
            }
        }