Esempio n. 1
0
 protected virtual async Task <string> RunAsDefaultUserAsync()
 {
     return(await Testing.RunAsDefaultUserAsync(Scope));
 }
Esempio n. 2
0
 protected virtual async Task AddAsync <TEntity>(TEntity entity)
     where TEntity : class
 {
     await Testing.AddAsync <TEntity>(entity, Scope);
 }
Esempio n. 3
0
 protected virtual async Task <TResponse> SendAsync <TResponse>(IRequest <TResponse> request)
 {
     return(await Testing.SendAsync <TResponse>(request, Scope));
 }
Esempio n. 4
0
 protected virtual async Task <TEntity> FindAsync <TEntity>(int id)
     where TEntity : class
 {
     return(await Testing.FindAsync <TEntity>(id, Scope));
 }