コード例 #1
0
        public async Task TestPostRevokeCollaboratorAsync()
        {
            userProvider.Setup(x => x.GetBusinessUser(It.IsAny <IWebApiUser>())).Returns(new Business.Service.User(1));
            var response = await controller.PostRevokeCollaboratorAsync(new ProgramCollaboratorBindingModel());

            authorizationHandler.Verify(x => x.HandleRevokedPermissionBindingModelAsync(It.IsAny <IRevokedPermissionBindingModel>(), It.IsAny <ApiController>()), Times.Once());
        }