public void AnonymousCannotGetIds() { var noLoginDataApiClient = new DataApiClient(ApiSetup.ApiConfiguration) { LoginMethod = LoginMethod.JsonWebToken }; var dataType = nameof(UnitTestDataObject1); AssertStatusCode( () => noLoginDataApiClient.GetNewIdAsync(dataType).Wait(), HttpStatusCode.Unauthorized); }