/// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchMemories"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchMemories(IRestRequest request, IFilterableRestClient client, FamilySearchStateFactory stateFactory)
     : this(request, client.Handle(request), client, null, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchMemories"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="response">The REST API response that was produced from the REST API request.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="accessToken">The access token to use for subsequent invocations of the REST API client.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 protected FamilySearchMemories(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, FamilySearchStateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchMemories"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target resides.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchMemories(Uri uri, FamilySearchStateFactory stateFactory)
     : this(uri, stateFactory.LoadDefaultClientInt(uri), stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchMemories"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target resides.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchMemories(Uri uri, IFilterableRestClient client, FamilySearchStateFactory stateFactory)
     : this(new RedirectableRestRequest().Accept(MediaTypes.GEDCOMX_JSON_MEDIA_TYPE).Build(uri, Method.GET), client, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchMemories"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="response">The REST API response that was produced from the REST API request.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="accessToken">The access token to use for subsequent invocations of the REST API client.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 protected FamilySearchMemories(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, FamilySearchStateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchMemories"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchMemories(IRestRequest request, IFilterableRestClient client, FamilySearchStateFactory stateFactory)
     : this(request, client.Handle(request), client, null, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchMemories"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target resides.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchMemories(Uri uri, IFilterableRestClient client, FamilySearchStateFactory stateFactory)
     : this(new RestRequest().Accept(MediaTypes.GEDCOMX_JSON_MEDIA_TYPE).Build(uri, Method.GET), client, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchMemories"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target resides.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchMemories(Uri uri, FamilySearchStateFactory stateFactory)
     : this(uri, stateFactory.LoadDefaultClientInt(uri), stateFactory)
 {
 }
 public void Initialize()
 {
     factory    = new FamilySearchStateFactory();
     collection = factory.NewCollectionState(new Uri("https://sandbox.familysearch.org/platform/collection"));
     collection.AuthenticateViaOAuth2Password(Resources.TestUserName, Resources.TestPassword, Resources.TestClientId);
 }