public void RemoveDataContext() { _userContextService.RemoveContext("TestUser", _contextId.ToString()); _documentSessionFactory.Save(); GetSession(out IDocumentSession documentSession); var contexts = documentSession.Load <User>(_testUserId)?.Contexts; var context = contexts?.OfType <TestContext2>().FirstOrDefault(); Assert.AreNotEqual(context.AssertContent, "Changed-My-Test-Content"); }