unit tests for API (99% coverage)

This commit is contained in:
Volodymyr Smirnov
2020-10-29 12:17:09 +02:00
parent 7f2528eb1d
commit b2902c128a
20 changed files with 565 additions and 130 deletions

View File

@@ -1,5 +1,5 @@
using System.Threading.Tasks;
using MalwareMultiScan.Api.Services;
using MalwareMultiScan.Api.Services.Interfaces;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
@@ -10,9 +10,9 @@ namespace MalwareMultiScan.Api.Controllers
[Produces("application/octet-stream")]
public class DownloadController : Controller
{
private readonly ScanResultService _scanResultService;
private readonly IScanResultService _scanResultService;
public DownloadController(ScanResultService scanResultService)
public DownloadController(IScanResultService scanResultService)
{
_scanResultService = scanResultService;
}