public async Task TestPostAddCollaboratorAsync() { userProvider.Setup(x => x.GetBusinessUser(It.IsAny <IWebApiUser>())).Returns(new Business.Service.User(1)); var response = await controller.PostAddCollaboratorAsync(new ProgramCollaboratorBindingModel()); authorizationHandler.Verify(x => x.HandleGrantedPermissionBindingModelAsync(It.IsAny <IGrantedPermissionBindingModel>(), It.IsAny <ApiController>()), Times.Once()); }