< Summary

Class:WinSolutions.Sveta.Server.Services.Implements.JobService
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Services/Implements/JobService.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:27
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodLine coverage Branch coverage
.ctor(...)0%100%
Create()0%0%

File(s)

/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Services/Implements/JobService.cs

#LineLine coverage
 1using System.Threading.Tasks;
 2using Microsoft.Extensions.Logging;
 3using WinSolutions.Sveta.Common;
 4using WinSolutions.Sveta.Server.Data.DataModel.Contexts;
 5using WinSolutions.Sveta.Server.Data.DataModel.Entities;
 6using WinSolutions.Sveta.Server.Services.Interfaces;
 7
 8namespace WinSolutions.Sveta.Server.Services.Implements
 9{
 10    public class JobService: SvetaServiceBase, IJobService
 11    {
 12        private readonly ILogger<JobService> _logger;
 13        private readonly SvetaDbContext _db;
 14
 015        public JobService(SvetaDbContext db, ILogger<JobService> logger, IAuthenticationService authenticationService): 
 016        {
 017            _db = db;
 018            _logger = logger;
 019        }
 20
 21        public async Task Create(JobLogger jobLogger)
 022        {
 023            await _db.JobLoggers.AddAsync(jobLogger);
 024            await _db.SaveChangesAsync(CurrentUserId);
 025        }
 26    }
 27}

Methods/Properties

.ctor(...)
Create()