< Summary

Information
Class: Services.DataServices.MatchedResultDataServices
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/DataServices/MatchedResultDataServices.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 20
Coverable lines: 20
Total lines: 59
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
AddMatchedResult()100%210%
DeleteMatchedResult()100%210%
DeleteMatchedResult()100%210%
GetMatchedResults()100%210%
GetBaseMatchedResults()100%210%
GetMatchedResultAsync()100%210%
GetMatchedResultAsync()100%210%
UpdateMatchedResult()100%210%
SaveChanges()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/DataServices/MatchedResultDataServices.cs

#LineLine coverage
 1using OzonDomains.Models.MatchedRowSys;
 2using OzonRepositories.Data;
 3
 4namespace Services.DataServices
 5{
 6    public class MatchedResultDataServices : IDataServices
 7    {
 8        private readonly MatchedResultRepository _repository;
 9
 010        public MatchedResultDataServices(MatchedResultRepository repository)
 11        {
 012            _repository = repository;
 013        }
 14
 15        public async Task<int> AddMatchedResult(MatchedResult value)
 16        {
 017            return await _repository.Add(value);
 018        }
 19
 20        public async Task<int> DeleteMatchedResult(MatchedResult value)
 21        {
 022            return await _repository.Delete(value);
 023        }
 24        public async Task<int> DeleteMatchedResult(int id)
 25        {
 026            return await _repository.Delete(id);
 027        }
 28
 29        public async Task<List<MatchedResult>> GetMatchedResults()
 30        {
 031            return await _repository.Get();
 032        }
 33
 34        public async Task<List<MatchedResult>> GetBaseMatchedResults()
 35        {
 036            return await _repository.GetBase();
 037        }
 38
 39        public async Task<MatchedResult?> GetMatchedResultAsync(int id)
 40        {
 041            return await _repository.GetAsync(id);
 042        }
 43
 44        public async Task<MatchedResult?> GetMatchedResultAsync(MatchedResult value)
 45        {
 046            return await _repository.GetAsync(value);
 047        }
 48
 49        public async Task<int> UpdateMatchedResult(MatchedResult value)
 50        {
 051            return await _repository.UpdateCascade(value);
 052        }
 53
 54        public Task<int> SaveChanges()
 55        {
 056            return _repository.SaveChanges();
 57        }
 58    }
 59}