示例#1
0
        public void TestRemoveTouristSpotNullInvalid()
        {
            ContextObl             context         = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString());
            ITouristSpotRepository touristSpotRepo = new TouristSpotRepository(context);

            touristSpotRepo.Remove(null);
        }
示例#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();
        }