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