public void ContinentRepositoryFunction_IsInDatabaseWithName_FunctionalityTest() { GeographyContextTest context = new GeographyContextTest(true); ContinentRepository repo = new ContinentRepository(context); repo.IsInDatabase(1).Should().BeTrue(); repo.IsInDatabase(29).Should().BeFalse(); }
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(); }