예제 #1
0
        public async Task ChangeRole_FailNotAdmin()
        {
            var role = new UserJsonDataBuilder()
                       .WithDefaultRoleId()
                       .Build();
            var request  = $"{_baseUrl}/{DefaultValues.MemberId}/role";
            var response = await MemberClient.PostAsync(request, role);

            Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
        }