public void GetLodgingDoesntExist() { ContextObl context = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString()); ILodgingRepository lodgingRepository = new LodgingRepository(context); Lodging lodgingOfDb = lodgingRepository.Get(lodging.Id); }
public void TestGetLodgingOK() { ContextObl context = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString()); ILodgingRepository lodgingRepository = new LodgingRepository(context); lodgingRepository.Add(lodging); Lodging lodgingOfDb = lodgingRepository.Get(lodging.Id); Assert.AreEqual(lodging, lodgingOfDb); }