Beispiel #1
0
        public void GetMetricsFromAgent_ReturnsOk()
        {
            //Arrange
            var fromTime = TimeSpan.FromSeconds(0);
            var toTime   = TimeSpan.FromSeconds(100);

            //Act
            var result = _controller.GetCpuMetrics(fromTime, toTime);

            // Assert
            _ = Assert.IsAssignableFrom <IActionResult>(result);
        }
Beispiel #2
0
        public void GetCpuMetrics_returnsOk()
        {
            var actual = cpuController.GetCpuMetrics(fromTime, toTime);

            _ = Assert.IsAssignableFrom <IActionResult>(actual);
        }