public async Task StopPreviewSnapshot_Returns() { requestsAndResponses.Add(ApiUris.StopPreviewSnapshot(accountId), RequestFileResponseType.AsGoodResponse("StopPreviewSnapshotResponse.xml")); var stopPreviewSnapshotType = new StopPreviewSnapshotType(); stopPreviewSnapshotType.consistencyGroupId = "3389ffe8-c3fc-11e3-b29c-001517c4643e"; var client = GetWebApiClient(); var accessor = new ConsistencyGroupAccessor(client); var response = await accessor.StopPreviewSnapshot(stopPreviewSnapshotType); Assert.IsNotNull(response); Assert.AreEqual("STOP_PREVIEW_SNAPSHOT", response.operation); }
/// <summary> /// The stop preview snapshot of a consistency group. /// </summary> /// <param name="stopPreviewSnapshotType">The stop preview snapshot type.</param> /// <returns>The <see cref="ResponseType"/></returns> public async Task <ResponseType> StopPreviewSnapshot(StopPreviewSnapshotType stopPreviewSnapshotType) { return(await _apiClient.PostAsync <StopPreviewSnapshotType, ResponseType>(ApiUris.StopPreviewSnapshot(_apiClient.OrganizationId), stopPreviewSnapshotType)); }