Пример #1
0
        public void AnonymousCannotGetIds()
        {
            var noLoginDataApiClient = new DataApiClient(ApiSetup.ApiConfiguration)
            {
                LoginMethod = LoginMethod.JsonWebToken
            };
            var dataType = nameof(UnitTestDataObject1);

            AssertStatusCode(
                () => noLoginDataApiClient.GetNewIdAsync(dataType).Wait(),
                HttpStatusCode.Unauthorized);
        }