public async void GetCurrentProperty_ShouldCallService() { // Arrange _mockService.Setup(_ => _.GetCurrentProperty(It.IsAny <string>(), It.IsAny <string>())) .ReturnsAsync(It.IsAny <Place>()); // Act var result = await _controller.GetCurrentProperty(It.IsAny <string>(), It.IsAny <string>()); // Assert _mockService.Verify(_ => _.GetCurrentProperty(It.IsAny <string>(), It.IsAny <string>()), Times.Once); var actionResult = Assert.IsType <OkObjectResult>(result); Assert.Equal(200, actionResult.StatusCode); }