public void TestCriacaoBenchmark() { var benchmarks = benchmarkService.GetBenchmark(BenchmarkDTO); Assert.Equal(2, benchmarks.Count); Assert.Equal(4, benchmarks.Sum(indice => indice.Itens.Count)); foreach (Indice indice in benchmarks) { Assert.Equal(1.1, indice.ValorCotaAtual); Assert.Equal(1.1, indice.VariacaoCotaPercentual); } }
public IActionResult GetAuditBenchmark() { List <AuditBenchmark> listOfBenchmark = new List <AuditBenchmark>(); try { listOfBenchmark = objService.GetBenchmark(); return(Ok(listOfBenchmark)); } catch (Exception e) { return(StatusCode(500)); } }