public void GetFirstObject_Exist_ReturnNull() { PerformSingleObjectExistTest(() => _session.GetFirstObject(SingleObjectQuery), CreateTestUser); }
/// <summary> /// Gets the first object by query. /// </summary> /// <param name="query">The query.</param> /// <returns></returns> public T GetFirstByQuery(Expression <Func <T, bool> > query) { return(Session.GetFirstObject(query)); }