示例#1
0
        public void GetGraphs_Success()
        {
            // Act
            var resultGraph = _service.GetGraphs();

            // Assert
            Assert.NotNull(resultGraph);
            Assert.Equal(5, resultGraph.Count);
            Assert.Single(resultGraph, g => g.Status == RegistrationService.Common.Enums.Graph.GraphStatus.Unreferenced && string.IsNullOrWhiteSpace(g.StartTime));
            Assert.Single(resultGraph, g => g.Status == RegistrationService.Common.Enums.Graph.GraphStatus.Historic && !string.IsNullOrWhiteSpace(g.StartTime));
        }
示例#2
0
        public IActionResult GetGraphs([NotRequiredAttribute] bool includeRevisionGraphs = false)
        {
            var graphs = _graphService.GetGraphs(includeRevisionGraphs);

            return(Ok(graphs));
        }
示例#3
0
        public IActionResult GetGraphs()
        {
            var graphs = _graphService.GetGraphs();

            return(Ok(graphs));
        }