/// <summary> /// Initializes a new instance of the <see cref="InfobipViberAdapter"/> class using configuration settings. /// </summary> /// <param name="infobipViberOptions">Adapter options. Typically created via appsettings loaded into an IConfiguration.</param> /// <param name="viberClient">Client/Proxy used to communicate with Infobip.</param> /// <param name="logger">Logger.</param> public InfobipViberAdapter(InfobipViberAdapterOptions infobipViberOptions, IInfobipViberClient viberClient, ILogger <InfobipViberAdapter> logger) { _infobipViberOptions = infobipViberOptions ?? throw new ArgumentNullException(nameof(infobipViberOptions)); _infobipViberClient = viberClient ?? throw new ArgumentNullException(nameof(viberClient)); _logger = logger ?? NullLogger <InfobipViberAdapter> .Instance; _toViberActivityConverter = new ToViberActivityConverter(infobipViberOptions, logger); _authorizationHelper = new AuthorizationHelper(); }
public ToViberActivityConverterTest() { _adapterOptions = TestOptions.Get(); _toActivityConverter = new ToViberActivityConverter(_adapterOptions, NullLogger.Instance); }