|
|
|
@ -16,20 +16,20 @@ namespace Volo.Abp.AspNetCore.TestBase; |
|
|
|
public class AbpAspNetCoreAsyncIntegratedTestBase<TModule> |
|
|
|
where TModule : IAbpModule |
|
|
|
{ |
|
|
|
protected WebApplication WebApplication { get; set; } |
|
|
|
protected WebApplication WebApplication { get; set; } = default!; |
|
|
|
|
|
|
|
protected TestServer Server { get; set; } |
|
|
|
protected TestServer Server { get; set; } = default!; |
|
|
|
|
|
|
|
protected HttpClient Client { get; set; } |
|
|
|
protected HttpClient Client { get; set; } = default!; |
|
|
|
|
|
|
|
protected IServiceProvider ServiceProvider { get; set; } |
|
|
|
protected IServiceProvider ServiceProvider { get; set; } = default!; |
|
|
|
|
|
|
|
protected virtual T GetService<T>() |
|
|
|
protected virtual T? GetService<T>() |
|
|
|
{ |
|
|
|
return ServiceProvider.GetService<T>(); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual T GetRequiredService<T>() |
|
|
|
protected virtual T GetRequiredService<T>() where T : notnull |
|
|
|
{ |
|
|
|
return ServiceProvider.GetRequiredService<T>(); |
|
|
|
} |
|
|
|
|