public void Repository_Snack_deveria_buscar_todos_os_Snacks() { //Action var snacks = _repository.GetAll().ToList(); //Assert snacks.Should().NotBeNull(); snacks.Should().HaveCount(Context.Snacks.Count()); snacks.First().Should().Be(_snackSeed); }
public void Snacks_Repository_Should_Get_All_Sucessfully() { //Action var snacks = _repository.GetAll().ToList(); //Assert snacks.Should().NotBeNull(); snacks.Should().HaveCount(_context.Snacks.Count()); snacks.First().Should().Be(_snackBase); }
internal IEnumerable <Snack> Get() { return(_repo.GetAll()); }