Exemplo n.º 1
0
        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();
        }