Example #1
0
 public void GetFirstObject_Exist_ReturnNull()
 {
     PerformSingleObjectExistTest(() => _session.GetFirstObject(SingleObjectQuery), CreateTestUser);
 }
Example #2
0
 /// <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));
 }