public void TestRemoveTouristSpotNullInvalid() { ContextObl context = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString()); ITouristSpotRepository touristSpotRepo = new TouristSpotRepository(context); touristSpotRepo.Remove(null); }
public void TestRemoveTouristSpotOK() { ContextObl context = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString()); ITouristSpotRepository touristSpotRepo = new TouristSpotRepository(context); touristSpotRepo.Add(aTouristSpot); touristSpotRepo.Remove(aTouristSpot); touristSpotRepo.GetAll(); }