public void should_return_all_commodities() { var commodities = new List <Commodity> { new() { Id = 1, Title = "book" } }; _commodityRepo.GetAll().Returns(commodities); _commodityService.GetAllCommodities().Should().BeEquivalentTo(commodities); } }
public IEnumerable <Commodity> GetAllCommodities() { return(_commodityRepo.GetAll()); }