public void TestGetUserSessionByUserId() { ContextObl context = ContextFactory.GetMemoryContext(Guid.NewGuid().ToString()); IUserSessionRepository userSessionRepo = new UserSessionRepository(context); userSessionRepo.Add(userSession); UserSession userSessionResult = userSessionRepo.GetUserSessionByUserId(user.Id); Assert.AreEqual(user, userSessionResult.User); }