C# Class GoogleAnalyticsUtilsTests.FakeAnalyticsReporterForEventsImpl

Inheritance: IAnalyticsReporter
Show file Open project: GoogleCloudPlatform/google-cloud-visualstudio Class Usage Examples

Public Methods

Method Description
FakeAnalyticsReporterForEventsImpl ( string expectedEventType, string expectedEventName, string expectedHostName, string expectedProjectNumberHash = null, bool expectedUserLoggedIn = false, string>.Dictionary expectedMetadata = null ) : GoogleAnalyticsUtils
ReportEvent ( string category, string action, string label = null, int value = default(int?) ) : void
ReportPageView ( string page, string title, string host, string>.Dictionary customDimensions = null ) : void

Private Methods

Method Description
ParsePageUrl ( string page, string &eventType, string &eventName ) : void
ParseTitle ( string src ) : string>.Dictionary
ParseValue ( string src ) : string>.KeyValuePair

Method Details

FakeAnalyticsReporterForEventsImpl() public method

public FakeAnalyticsReporterForEventsImpl ( string expectedEventType, string expectedEventName, string expectedHostName, string expectedProjectNumberHash = null, bool expectedUserLoggedIn = false, string>.Dictionary expectedMetadata = null ) : GoogleAnalyticsUtils
expectedEventType string
expectedEventName string
expectedHostName string
expectedProjectNumberHash string
expectedUserLoggedIn bool
expectedMetadata string>.Dictionary
return GoogleAnalyticsUtils

ReportEvent() public method

public ReportEvent ( string category, string action, string label = null, int value = default(int?) ) : void
category string
action string
label string
value int
return void

ReportPageView() public method

public ReportPageView ( string page, string title, string host, string>.Dictionary customDimensions = null ) : void
page string
title string
host string
customDimensions string>.Dictionary
return void