public void Init() { listener = DfpTraceListener.Instance; // Set static values for testing DfpAppConfig config = (DfpAppConfig)listener.Config; config.GetType().GetProperty("NetworkCode").SetValue(config, TestNetwodeCode, null); config.GetType().GetProperty("MaskCredentials").SetValue(config, true, null); ((TraceListener)listener).DateTimeProvider = new MockDateTimeProvider(); }
public void Init() { listener = AdWordsTraceListener.Instance; // Set static values for testing. AdWordsAppConfig config = (AdWordsAppConfig)listener.Config; config.GetType().GetProperty("ClientCustomerId").SetValue(config, TestCustomerId, null); config.GetType().GetProperty("MaskCredentials").SetValue(config, true, null); ((TraceListener)listener).DateTimeProvider = new MockDateTimeProvider(); }