public void GetMetricsFromAgent_ReturnsOk() { //Arrange var fromTime = TimeSpan.FromSeconds(0); var toTime = TimeSpan.FromSeconds(100); //Act var result = _controller.GetDotNetErrorsCount(fromTime, toTime); // Assert _ = Assert.IsAssignableFrom <IActionResult>(result); }