Ejemplo n.º 1
0
 public void GetSingleObject_NotExist_ReturnNull()
 {
     PerformSingleObjectNotExistTest(() => _session.GetSingleObject(SingleObjectQuery));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the single object by query.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <returns></returns>
 public T GetSingleByQuery(Expression <Func <T, bool> > query)
 {
     return(Session.GetSingleObject(query));
 }