public async void CreateCase_ShouldCallService() { // Arrange _mockService .Setup(_ => _.CreateFeedbackCase(It.IsAny <FeedbackDetails>())) .ReturnsAsync(It.IsAny <string>()); // Act await _controller.CreateCase(It.IsAny <FeedbackDetails>()); // Assert _mockService.Verify(_ => _.CreateFeedbackCase(It.IsAny <FeedbackDetails>()), Times.Once); }