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



            Continent continent = repo.GetContinent(1);

            continent.Name.Should().Be("Continent");

            repo.UpdateContinent(1, new Continent("Continent3"));
            context.SaveChanges();

            continent = repo.GetContinent(1);

            continent.Name.Should().Be("Continent3");
        }