public void SetUp()
        {
            postDataBuilderMock = MockRepository.GenerateMock<IPostDataBuilder>();
            googleDataSenderMock = MockRepository.GenerateMock<IGoogleDataSender>();
            eventTracker = new EventTracker(postDataBuilderMock, googleDataSenderMock);

            analyticsEvent = MockRepository.GenerateMock<IUniversalAnalyticsEvent>();
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            postDataBuilderMock  = MockRepository.GenerateMock <IPostDataBuilder>();
            googleDataSenderMock = MockRepository.GenerateMock <IGoogleDataSender>();
            eventTracker         = new EventTracker(postDataBuilderMock, googleDataSenderMock);

            analyticsEvent = MockRepository.GenerateMock <IUniversalAnalyticsEvent>();
        }
 /// <summary>
 /// This constructor is only used if you want to inject your own implementations (most likely for unit testing)
 /// </summary>
 /// <param name="postDataBuilder"></param>
 /// <param name="googleDataSender"></param>
 internal EventTracker(IPostDataBuilder postDataBuilder, IGoogleDataSender googleDataSender)
 {
     this._postDataBuilder  = postDataBuilder;
     this._googleDataSender = googleDataSender;
 }
 /// <summary>
 /// This constructor will create all of the appropriate default implementations.
 /// </summary>
 public EventTracker()
 {
     this._postDataBuilder  = new PostDataBuilder();
     this._googleDataSender = new GoogleDataSender();
 }
Exemplo n.º 5
0
 /// <summary>
 /// This constructor will create all of the appropriate default implementations.
 /// </summary>
 public EventTracker()
 {
     this._postDataBuilder  = new PostDataBuilder();
     this._googleDataSender = new GoogleDataSender();
     this._customPayload    = new NameValueCollection();
 }
 /// <summary>
 /// This constructor is only used if you want to inject your own implementations (most likely for unit testing)
 /// </summary>
 /// <param name="postDataBuilder"></param>
 /// <param name="googleDataSender"></param>
 internal EventTracker(IPostDataBuilder postDataBuilder, IGoogleDataSender googleDataSender)
 {
     this.postDataBuilder = postDataBuilder;
     this.googleDataSender = googleDataSender;
 }
 /// <summary>
 /// This constructor will create all of the appropriate default implementations.
 /// </summary>
 public EventTracker()
 {
     this.postDataBuilder = new PostDataBuilder();
     this.googleDataSender = new GoogleDataSender();
 }