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; }
/// <summary> /// Creates a new instance of AdHandlerBase /// </summary> public AdHandlerBase() { controller = new AdHandlerController(); }
/// <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; }