public GoogleAnalyticsViewBagFilterTestsFixture() { Controller = new Mock <ControllerBase>(); ActionExecutingContext = new ActionExecutingContext { Controller = Controller.Object }; GoogleAnalyticsConfiguration = new GoogleAnalyticsConfiguration(); GoogleAnalyticsViewBagFilter = new GoogleAnalyticsViewBagFilter(() => GoogleAnalyticsConfiguration); }
private void PopulateGoogleEnvironmentDetails(GoogleAnalyticsConfiguration environmentConfig) { GoogleHeaderUrl = environmentConfig.GoogleAnalyticsValues.GoogleHeaderUrl; GoogleBodyUrl = environmentConfig.GoogleAnalyticsValues.GoogleBodyUrl; }