Exemplo n.º 1
0
        public static StripeReporter CreateStep(StripeReporterConfiguration configuration)
        {
            if (configuration.GetType() == typeof(HipChatReporterConfiguration))
            {
                return(new HipChatReporter(configuration as HipChatReporterConfiguration));
            }

            if (configuration.GetType() == typeof(PushoverReporterConfiguration))
            {
                return(new PushoverReporter(configuration as PushoverReporterConfiguration));
            }

            if (configuration.GetType() == typeof(SlackReporterConfiguration))
            {
                return(new SlackReporter(configuration as SlackReporterConfiguration));
            }

            return(null);
        }
Exemplo n.º 2
0
 protected StripeReporter(StripeReporterConfiguration configuration)
 {
     this._configuration = configuration;
 }