Exemplo n.º 1
0
        public void SnackRepository_Should_Delete_Snack()
        {
            // Arrange
            int id = 1;

            // Act
            _snackRepo.Remove(id);
            _snackRepo.SaveAll();
            Snack snack = _snackRepo.FindById(id);

            // Assert
            Assert.IsNull(snack, "Snack is deleted.");
        }