mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-28 03:00:53 +03:00
added API tests
This commit is contained in:
@@ -26,11 +26,16 @@ namespace PracticeCalendar.UnitTests.Integration
|
||||
{
|
||||
cfg.AddSingleton(svc => domainEventServiceMock.Object);
|
||||
});
|
||||
|
||||
|
||||
_scopeFactory = _factory.Services.GetRequiredService<IServiceScopeFactory>();
|
||||
_configuration = _factory.Services.GetRequiredService<IConfiguration>();
|
||||
}
|
||||
|
||||
public static HttpClient GetHttpClient()
|
||||
{
|
||||
return _factory.CreateClient();
|
||||
}
|
||||
|
||||
public static async Task<TResponse> SendAsync<TResponse>(IRequest<TResponse> request)
|
||||
{
|
||||
using var scope = _scopeFactory.CreateScope();
|
||||
|
||||
Reference in New Issue
Block a user