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>(); }
public PersonalContactsApiTests() { string token = Utils.GetTestToken().Result; graphClient = DefaultGraphApi.GetGraphServiceClient(token); }
public CalendarApiTests() { string token = Utils.GetTestToken().Result; graphClient = DefaultGraphApi.GetGraphServiceClient(token); }