示例#1
0
 public UnitTestVast()
 {
     controller = new AdHandlerController()
     {
         Player = new Mockups.Player()
     };
     controller.LoadPlayer       += controller_LoadPlayer;
     controller.UnloadPlayer     += controller_UnloadPlayer;
     controller.ActivateAdUnit   += controller_ActivateAdUnit;
     controller.DeactivateAdUnit += controller_DeactivateAdUnit;
     controller.AdStateChanged   += controller_AdStateChanged;
 }
示例#2
0
 /// <summary>
 /// Creates a new instance of AdHandlerBase
 /// </summary>
 public AdHandlerBase()
 {
     controller = new AdHandlerController();
 }
示例#3
0
 /// <summary>
 /// Creates an AdvertisingLoggingSource object that generates logs based on advertising tracking events
 /// </summary>
 /// <param name="adHandlerController">The AdHandlerController that the AdvertisingLoggingSource will monitor for tracking events.</param>
 public AdvertisingLoggingSource(AdHandlerController adHandlerController)
 {
     adHandlerController.AdTrackingEventOccurred += adHandlerController_AdTrackingEventOccurred;
 }