public GetDeviceHandler( ILogger <GetDeviceHandler> logger, IOptions <ExternalSourceOptions> options) { _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public SynchronizationService( ILogger <SynchronizationService> logger, IOptions <ExternalSourceOptions> options, IMediator mediator) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); }
public TestGettingDevice() { _options = new ExternalSourceOptions { GetDeviceUri = "https://fonoapi.freshpixl.com/v1/getdevice", Token = "a528483f2e5ba46c5cb6769ddc2c533ae1d95e33570ee1f0", CacheExpirationHours = 12, RateLimitPauseSeconds = 10, ModelNames = new [] { "Samsung Galaxy S9", "Samsung Galaxy S8", "Samsung Galaxy S7", "Motorola Nexus 6", "LG Nexus 5X", "Apple iPhone X", "Apple iPhone 8", "Apple iPhone 4s", "Nokia 3310" } }; }