public GoogleAnalyticsViewBagFilterTestsFixture()
        {
            Controller = new Mock <ControllerBase>();

            ActionExecutingContext = new ActionExecutingContext
            {
                Controller = Controller.Object
            };

            GoogleAnalyticsConfiguration = new GoogleAnalyticsConfiguration();
            GoogleAnalyticsViewBagFilter = new GoogleAnalyticsViewBagFilter(() => GoogleAnalyticsConfiguration);
        }
예제 #2
0
 private void PopulateGoogleEnvironmentDetails(GoogleAnalyticsConfiguration environmentConfig)
 {
     GoogleHeaderUrl = environmentConfig.GoogleAnalyticsValues.GoogleHeaderUrl;
     GoogleBodyUrl   = environmentConfig.GoogleAnalyticsValues.GoogleBodyUrl;
 }