Ejemplo n.º 1
0
        public FisiotesRepository(IRestClient restClient, FisiotesConfig config)
        {
            _restClient = restClient ?? throw new ArgumentNullException(nameof(restClient));
            _config     = config ?? throw new ArgumentNullException(nameof(config));

            _restClient.BaseAddress(_config.BaseAddress)
            .UseAuthenticationBasic(_config.Credentials.Token);
        }