Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var blipTestHostChannelSettings = new BlipTestHostChannelSettings
            {
                AssemblyReference   = typeof(Startup).Assembly,
                MessageTimeout      = TimeSpan.FromMinutes(2),
                NotificationTimeout = TimeSpan.FromMinutes(2)
            };

            ITestChannel channel = new BlipTestHostChannel(blipTestHostChannelSettings, new TestCaseSettings
            {
                User    = "******",
                Channel = "Messenger"
            });

            FlowTestClient client = new FlowTestClient(channel);

            using (var cts = new CancellationTokenSource())
            {
                var response = client.RunAsync(args[0], cts.Token).Result;
                Console.WriteLine($"Result: {response.IsSuccessfully}");
            }

            Console.ReadKey();
        }
 public BlipTestHostChannel(
     BlipTestHostChannelSettings blipTestHostChannelSettings,
     TestCaseSettings settings
     )
 {
     _blipTestHostChannelSettings = blipTestHostChannelSettings;
     _settings = settings;
 }