Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ApiManagement] Refresh all examples #5658

Merged
merged 2 commits into from
Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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