diff --git a/.codegen.json b/.codegen.json index 13fa87df..a14c91ef 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "3970588", "specHash": "d50ab5f", "version": "0.3.0" } +{ "engineHash": "0d4bf53", "specHash": "d50ab5f", "version": "0.3.0" } diff --git a/Box.Sdk.Gen.Tests.Integration/Test/Client/ClientManagerTests.cs b/Box.Sdk.Gen.Tests.Integration/Test/Client/ClientManagerTests.cs index f78d1e8d..29c2d257 100644 --- a/Box.Sdk.Gen.Tests.Integration/Test/Client/ClientManagerTests.cs +++ b/Box.Sdk.Gen.Tests.Integration/Test/Client/ClientManagerTests.cs @@ -2,6 +2,7 @@ using StringExtensions; using System.Collections.Generic; using System.Collections.ObjectModel; +using System; using Box.Sdk.Gen; using Box.Sdk.Gen.Schemas; using Box.Sdk.Gen.Managers; @@ -45,5 +46,12 @@ public async System.Threading.Tasks.Task TestWithExtraHeaders() { await client.Users.DeleteUserByIdAsync(userId: createdUser.Id); } + [TestMethod] + public async System.Threading.Tasks.Task TestWithCustomBaseUrls() { + BaseUrls newBaseUrls = new BaseUrls(baseUrl: "https://box.com/", uploadUrl: "https://box.com/", oauth2Url: "https://box.com/"); + BoxClient customBaseClient = client.WithCustomBaseUrls(baseUrls: newBaseUrls); + await Assert.That.IsExceptionAsync(async() => await customBaseClient.Users.GetUserMeAsync()); + } + } } \ No newline at end of file