public ApiControllerTests()
        {
            string token = Utils.GetTestToken().Result;

            graphClient = DefaultGraphApi.GetGraphServiceClient(token);
            services    = new ServiceCollection();
            services.AddLogging();
            services.AddScoped <GraphApi, OutlookApi>();
            services.AddScoped <GraphApi, OneDriveApi>();
            services.AddScoped <GraphApi, PermissionsApi>();
            services.AddScoped <GraphApi, CalendarApi>();
            services.AddScoped <GraphApi, PersonalContactsApi>();
            services.AddScoped <ApiController>();
        }
示例#2
0
        public PersonalContactsApiTests()
        {
            string token = Utils.GetTestToken().Result;

            graphClient = DefaultGraphApi.GetGraphServiceClient(token);
        }
示例#3
0
        public CalendarApiTests()
        {
            string token = Utils.GetTestToken().Result;

            graphClient = DefaultGraphApi.GetGraphServiceClient(token);
        }