public void TestGetTimezoneByLatitudeAndLongitude() { serviceMock.Setup(x => x.GetIANATimezone(It.IsAny <double>(), It.IsAny <double>())).Returns(new TimeZoneResult()); var response = controller.GetTimezoneByLatitudeAndLongitude(1.0, 1.0); Assert.IsInstanceOfType(response, typeof(OkNegotiatedContentResult <TimeZoneResult>)); serviceMock.Verify(x => x.GetIANATimezone(It.IsAny <double>(), It.IsAny <double>()), Times.Once()); }