/// <summary> /// Initializes a new instance of the <see cref="TestClientFactory"/> class. /// </summary> /// <param name="channel">The type of channel to create based on the <see cref="Channels"/> class.</param> /// <param name="options">The options to create the client.</param> /// <param name="logger">An optional <see cref="ILogger"/> instance.</param> public TestClientFactory(string channel, DirectLineTestClientOptions options, ILogger logger) { switch (channel) { case Channels.Directline: _testClientBase = new DirectLineTestClient(options, logger); break; case Channels.Emulator: break; case Channels.Msteams: break; case Channels.Facebook: break; case Channels.Slack: break; default: throw new InvalidEnumArgumentException($"Invalid client type ({channel})"); } }
/// <summary> /// Initializes a new instance of the <see cref="TestClientFactory"/> class. /// </summary> /// <param name="client">The type of client to create.</param> /// <param name="options">The options to create the client.</param> /// <param name="logger">An optional <see cref="ILogger"/> instance.</param> public TestClientFactory(ClientType client, DirectLineTestClientOptions options, ILogger logger) { switch (client) { case ClientType.DirectLine: _testClientBase = new DirectLineTestClient(options, logger); break; case ClientType.Emulator: break; case ClientType.Teams: break; case ClientType.Facebook: break; case ClientType.Slack: break; default: throw new InvalidEnumArgumentException($"Invalid client type ({client})"); } }