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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 internal IEnumerable <Snack> Get()
 {
     return(_repo.GetAll());
 }