Ejemplo n.º 1
0
 // lazy singleton with arguments
 public static void Initialize(IConfigurationRoot appConfig)
 {
     if (instance == null)
     {
         instance = new AuthProvider(appConfig);
     }
     else
     {
         Console.WriteLine($"{typeof(AuthProvider)} has already been initialized.");
     }
 }
Ejemplo n.º 2
0
 public GraphManagerTests(GraphManagerFixture fixture)
 {
     authProvider = fixture.authProvider;
     graphManager = fixture.graphManager;
     Debug.WriteLine(graphManager.GetHashCode());
 }
Ejemplo n.º 3
0
 public GraphManagerFixture()
 {
     authProvider = new AuthProvider(AuthProvider.Authority.Organizations);
     graphManager = new GraphManager(authProvider);
     var _ = authProvider.GetAccessTokenWithUsernamePassword().Result;
 }
Ejemplo n.º 4
0
 public GraphApiCallTests(GraphManagerFixture fixture)
 {
     authProvider = fixture.authProvider;
 }