Beispiel #1
0
 public MonzoController(IMonzoService monzoService)
 {
     _monzoAuthorizationClient = new MonzoAuthorizationClient(clientId, clientSecret, rootUrl);
     this.monzoService         = monzoService ?? throw new ArgumentNullException(nameof(monzoService));
     ;
 }
Beispiel #2
0
        public AuthController(IOptions <MonzoSettings> settings)
        {
            this.settings = settings.Value;

            this.authClient = new MonzoAuthorizationClient(this.settings.ClientId, this.settings.ClientSecret, this.settings.BaseUrl, this.settings.ApiSubDomain);
        }