Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
        public IActionResult GetGraphs([NotRequiredAttribute] bool includeRevisionGraphs = false)
        {
            var graphs = _graphService.GetGraphs(includeRevisionGraphs);

            return(Ok(graphs));
        }
Ejemplo n.º 3
0
        public IActionResult GetGraphs()
        {
            var graphs = _graphService.GetGraphs();

            return(Ok(graphs));
        }