示例#1
0
            public void CanConstruct()
            {
                var requestInfo = CreateRequestInfo();

                var visitor = new Visitor(requestInfo.VisitorIdentifier);
                var visit = new Visit(visitor, requestInfo);
                var item = CreateItem();
                var action = new VisitAction(visit, VisitActionType.ContentView, item);

                Assert.AreEqual(VisitActionType.ContentView, action.VisitActionType);
                Assert.AreSame(item, action.BehaviorMonitoredItem);
                Assert.AreSame(visit, action.Visit);
            }
示例#2
0
 /// <summary>
 /// Tracks the action.
 /// </summary>
 /// <param name="action">The action.</param>
 public void TrackAction(VisitAction action)
 {
     this.VisitActions.Add(action);
 }