public async Task Test_GetSensorsAveragePerMonth_Successful() { _mockauditDataProvider.Setup(a => a.GetAveragePerMonth(It.IsAny <string>(), It.IsAny <int>(), It.IsAny <string>())).Returns( new Outcome <decimal> { Result = 20 } ); var result = await sensorsController.GetSensorsAveragePerMonth(It.IsAny <string>(), It.IsAny <int>()); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(Microsoft.AspNetCore.Mvc.ActionResult <decimal>)); }