Exemplo n.º 1
0
 public void Initialize()
 {
     collection = new CollectionState(new Uri(SANDBOX_URI));
     collection.AuthenticateViaOAuth2Password(Resources.TestUserName, Resources.TestPassword, Resources.TestClientId);
     tree = new FamilySearchFamilyTree(true);
     tree.AuthenticateWithAccessToken(collection.CurrentAccessToken);
     cleanup = new List <GedcomxApplicationState>();
     Assert.DoesNotThrow(() => collection.IfSuccessful());
     Assert.IsNotNull(collection.CurrentAccessToken);
     Assert.IsNotEmpty(collection.CurrentAccessToken);
 }