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)); }
public IActionResult GetGraphs([NotRequiredAttribute] bool includeRevisionGraphs = false) { var graphs = _graphService.GetGraphs(includeRevisionGraphs); return(Ok(graphs)); }
public IActionResult GetGraphs() { var graphs = _graphService.GetGraphs(); return(Ok(graphs)); }