Example #1
0
        public GraphServiceClientFixture()
        {
            var azureConfig       = Configuration.Instance.GetSection("AzureAd");
            var clientId          = azureConfig["ClientId"];
            var clientSecret      = Configuration.Instance["ClientSecret"];
            var tenantId          = azureConfig["TenantId"];
            var authority         = azureConfig["Authority"];
            var clientApplication = ClientApplicationFactory.CreateConfidentialClient(clientId, clientSecret, tenantId);

            GraphServiceClient = GraphServiceClientFactory.Create(clientApplication);
        }