public async Task ExpandJournal_ReturnsResponse() { requestsAndResponses.Add(ApiUris.ExpandJournal(accountId), RequestFileResponseType.AsGoodResponse("ExpandJournalResponse.xml")); var expandJournalType = new ExpandJournalType(); expandJournalType.id = "3389ffe8-c3fc-11e3-b29c-001517c4643e"; expandJournalType.sizeGb = 30; var client = GetWebApiClient(); var accessor = new ConsistencyGroupAccessor(client); var response = await accessor.ExpandJournal(expandJournalType); Assert.IsNotNull(response); Assert.AreEqual("EXPAND_JOURNAL", response.operation); }
/// <summary> /// Expand journal /// </summary> /// <param name="expandJournalType">Expand journal type.</param> /// <returns>The <see cref="ResponseType"/></returns> public async Task <ResponseType> ExpandJournal(ExpandJournalType expandJournalType) { return(await _apiClient.PostAsync <ExpandJournalType, ResponseType>(ApiUris.ExpandJournal(_apiClient.OrganizationId), expandJournalType)); }