Skip to content

Commit

Permalink
[ApiManagement] Refresh all examples (Azure#5658)
Browse files Browse the repository at this point in the history
* Refresh all examples

* refresh RP api examples
  • Loading branch information
solankisamir authored and mentat9 committed Jun 10, 2019
1 parent 46395d7 commit a0169d9
Show file tree
Hide file tree
Showing 66 changed files with 11,131 additions and 11,616 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task CreateListUpdateDelete()

Assert.NotNull(listResponse);;
Assert.Equal(6, listResponse.Count());
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);
foreach (var operationContract in listResponse)
{
Assert.Equal(api.Name, operationContract.ApiIdentifier);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task CreateListUpdateDelete()

Assert.NotNull(listResponse);
Assert.Equal(2, listResponse.Count());
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

// list paged
listResponse = testBase.client.ApiProduct.ListByApis(
Expand Down Expand Up @@ -74,7 +74,7 @@ public async Task CreateListUpdateDelete()
Assert.NotNull(listByApiResponse);
Assert.Single(listByApiResponse);
Assert.Equal("Unlimited", listByApiResponse.First().DisplayName);
Assert.Empty(listByApiResponse.NextPageLink);
Assert.Null(listByApiResponse.NextPageLink);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task CreateListUpdateDelete()
null);
Assert.NotNull(listResponse);
Assert.Single(listResponse);
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

var echoApi = listResponse.First();
Assert.Equal("Echo API", echoApi.DisplayName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task CreateListUpdateDelete()

Assert.NotEmpty(groupsList);
Assert.Equal(3, groupsList.GetEnumerator().ToIEnumerable().Count());
Assert.NotNull(groupsList.NextPageLink);
Assert.Null(groupsList.NextPageLink);

// list by paging using ODATA query
groupsList = testBase.client.Group.ListByService(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public async Task CreateUpdateDelete()
null);
Assert.NotNull(apiListResponse);
Assert.Single(apiListResponse);
Assert.NotNull(apiListResponse.NextPageLink);
Assert.Null(apiListResponse.NextPageLink);

// find the echo api
var echoApi = apiListResponse.First();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public async Task CreateListUpdateDelete()

// there should be atleast 2 openId connect Providers.
Assert.True(listResponse.Count() >= 2);
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

// list using Query
listResponse = testBase.client.OpenIdConnectProvider.ListByService(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task CreateListUpdateDelete()

Assert.NotNull(listResponse);
Assert.Equal(2, listResponse.Count());// there are 2 product Starter and Unlimited created by default
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

string productId = TestUtilities.GenerateName("newproduct");

Expand Down Expand Up @@ -136,7 +136,7 @@ public async Task CreateListUpdateDelete()
Assert.Single(pagedProducts);
// finally the Unlimited product due to alphabetical order of name
Assert.Equal("Unlimited", pagedProducts.First().DisplayName);
Assert.Empty(pagedProducts.NextPageLink); // it should be empty now.
Assert.Null(pagedProducts.NextPageLink); // it should be empty now.

// get the entity tag
productTag = await testBase.client.Product.GetEntityTagAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task CreateListUpdateDelete()

Assert.NotNull(listResponse);
Assert.True(listResponse.Count() >= 2);
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

// list paged
listResponse = testBase.client.Subscription.List(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task CreateListUpdateDelete()
null);
Assert.NotNull(listResponse);
Assert.Single(listResponse);
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

var echoApi = listResponse.First();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task CreateListUpdateDeleteApiTags()
null);
Assert.NotNull(listResponse);
Assert.Single(listResponse);
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

var echoApi = listResponse.First();

Expand Down Expand Up @@ -181,7 +181,7 @@ public async Task CreateListUpdateDeleteProductTags()
null);
Assert.NotNull(listResponse);
Assert.Equal(2, listResponse.GetEnumerator().ToIEnumerable().Count());
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

var starterProduct = listResponse.First();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public void SubscriptionsList()

Assert.NotNull(listResponse);
Assert.True(listResponse.Count() >= 2);
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);

// list paged
listResponse = testBase.client.UserSubscription.List(
Expand All @@ -350,7 +350,7 @@ public void SubscriptionsList()

Assert.NotNull(listResponse);
Assert.Single(listResponse);
Assert.NotNull(listResponse.NextPageLink);
Assert.Null(listResponse.NextPageLink);
}
}
}
Expand Down
Loading

0 comments on commit a0169d9

Please sign in to comment.