Exemplo n.º 1
0
 public IActionResult Get()
 {
     try
     {
         Core.SimSig.SimulationCollection SimCollection = new Core.SimSig.SimulationCollection(this._SQLConnection);
         return(Ok(SimCollection));
     }
     catch (Exception Ex)
     {
         _logger.LogError($"An error has occurred: {Ex}");
         return(StatusCode(500, Ex.Message));
     }
 }
Exemplo n.º 2
0
 public void SimulationCollection_Constructor_Default()
 {
     Core.SimSig.SimulationCollection TestSimCollection = new Core.SimSig.SimulationCollection(this._SQLConnection);
     //Check 5 records are returned
     Assert.Equal(5, TestSimCollection.Count);
 }