public void GetMetricsFromAgent_ReturnsOk() { //Arrange var agentId = 1; var fromTime = TimeSpan.FromSeconds(0); var toTime = TimeSpan.FromSeconds(100); var kindOfErrors = ErrorsType.All; //Act var result = controller.GetMetricsErrorsCountFromAgent(agentId, fromTime, toTime, kindOfErrors); // Assert _ = Assert.IsAssignableFrom <IActionResult>(result); }