public void TestGetUserSessionBad() { ContextObl context = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString()); IUserSessionRepository userSessionRepo = new UserSessionRepository(context); userSessionRepo.Get(userSession.Id); }
public void TestGetUserSessionOK() { ContextObl context = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString()); IUserSessionRepository userSessionRepo = new UserSessionRepository(context); userSessionRepo.Add(userSession); UserSession userSessionOfDb = userSessionRepo.Get(userSession.Id); Assert.AreEqual(userSession, userSessionOfDb); }