public void ShouldGiveAllQuotesAsList() { var records = _manager.List(); var count = records.Count(); Assert.NotNull(records); Assert.True(count > 100); Assert.Equal(1, records.First().Id); Assert.Equal(count, records.Last().Id); }
public ActionResult <IEnumerable <QuoteOutputDto> > Get() { var records = _manager.List(); return(Ok(_mapper.Map <IEnumerable <QuoteOutputDto> >(records))); }