Exemplo n.º 1
0
        public void TestRemoveTouristSpotNullInvalid()
        {
            ContextObl             context         = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString());
            ITouristSpotRepository touristSpotRepo = new TouristSpotRepository(context);

            touristSpotRepo.Remove(null);
        }
Exemplo n.º 2
0
        public void TestRemoveTouristSpotOK()
        {
            ContextObl             context         = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString());
            ITouristSpotRepository touristSpotRepo = new TouristSpotRepository(context);

            touristSpotRepo.Add(aTouristSpot);
            touristSpotRepo.Remove(aTouristSpot);
            touristSpotRepo.GetAll();
        }