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