public OutcomeRepository(IDefinitionManager <IOutcomeDefinition> outcomeDefinitionManager, ITaxonomyManagerProvider taxonomyManagerProvider) { this.outcomeDefinitionManager = outcomeDefinitionManager; this.outcomeGroupTaxonomyManager = taxonomyManagerProvider.GetOutcomeGroupManager(); }
public CampaignRepository(ITaxonomyManagerProvider taxonomyManagerProvider, IDefinitionManager <ICampaignActivityDefinition> campaignDefinitionManager) { this.channelTaxonomyManager = taxonomyManagerProvider.GetChannelManager(); this.campaignDefinitionManager = campaignDefinitionManager; }
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(); } }