Exemplo n.º 1
0
        public void ContinentRepositoryFunction_DeleteContinent_FunctionalityTest()
        {
            GeographyContextTest context = new GeographyContextTest(true);
            ContinentRepository  repo    = new ContinentRepository(context);

            repo.DeleteContinent(2);

            context.SaveChanges();

            repo.IsInDatabase(1).Should().BeTrue();
            repo.IsInDatabase(2).Should().BeFalse();
        }