Пример #1
0
 public async Task GetSingleObjectAsync_NotExist_ReturnNull()
 {
     await PerformSingleObjectNotExistAsyncTest(() => _session.GetSingleObjectAsync(SingleObjectQuery));
 }
Пример #2
0
 /// <summary>
 /// Gets the single object by query asynchronously.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <returns></returns>
 public Task <T> GetSingleByQueryAsync(Expression <Func <T, bool> > query)
 {
     return(Session.GetSingleObjectAsync(query));
 }