< Summary

Information
Class: Services.DataServices.MatchedRowDataServices
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/DataServices/MatchedRowDataServices.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 18
Coverable lines: 18
Total lines: 55
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%
AddMatchedRow()100%210%
AddMatchedRows()100%210%
DeleteMatchedRow()100%210%
GetMatchedRows()100%210%
GetMatchedRowAsync()100%210%
GetMatchedRowAsync()100%210%
UpdateMatchedRow()100%210%
SaveChanges()100%210%

File(s)

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

#LineLine coverage
 1using OzonDomains.Models.MatchedRowSys;
 2using OzonRepositories.Data;
 3
 4namespace Services.DataServices
 5{
 6    public class MatchedRowDataServices : IDataServices
 7    {
 8        private readonly MatchedRowRepository _repository;
 9
 010        public MatchedRowDataServices(MatchedRowRepository repository)
 11        {
 012            _repository = repository;
 013        }
 14
 15        public async Task<int> AddMatchedRow(MatchedRow value)
 16        {
 017            return await _repository.Add(value);
 018        }
 19
 20        public async Task<int> AddMatchedRows(List<MatchedRow> values)
 21        {
 022            return await _repository.AddRange(values);
 023        }
 24
 25        public async Task<int> DeleteMatchedRow(MatchedRow value)
 26        {
 027            return await _repository.Delete(value);
 028        }
 29
 30        public async Task<List<MatchedRow>> GetMatchedRows()
 31        {
 032            return await _repository.Get();
 033        }
 34
 35        public async Task<MatchedRow?> GetMatchedRowAsync(int id)
 36        {
 037            return await _repository.GetAsync(id);
 038        }
 39
 40        public async Task<MatchedRow?> GetMatchedRowAsync(MatchedRow value)
 41        {
 042            return await _repository.GetAsync(value);
 043        }
 44
 45        public async Task<int> UpdateMatchedRow(MatchedRow value)
 46        {
 047            return await _repository.Update(value);
 048        }
 49
 50        public Task<int> SaveChanges()
 51        {
 052            return _repository.SaveChanges();
 53        }
 54    }
 55}