예제 #1
0
        public void RejectedListResourceOwners()
        {
            Option <ResourceOwner[]> .Error response = null !;

            "When listing resource owners".x(
                async() =>
            {
                response = await ManagerClient.GetAllResourceOwners(GrantedToken.AccessToken)
                           .ConfigureAwait(false) as Option <ResourceOwner[]> .Error;
            });

            "Then response has error.".x(
                () =>
            {
                Assert.Equal(HttpStatusCode.Forbidden, response.Details.Status);
            });
        }