< Summary

Information
Class: Services.DataServices.SavedMatchingColumnDataServices
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/DataServices/SavedMatchingColumnDataServices.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 36
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%
AddSavedMatchingColumn(...)100%210%
GetSavedMatchingColumns()100%210%
GetSavedMatchingColumnAsync()100%210%
SaveChanges()100%210%

File(s)

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

#LineLine coverage
 1using OzonDomains.Models;
 2using OzonDomains.Models.MatchedRowSys;
 3using OzonRepositories.Data;
 4using System.Collections.Generic;
 5using System.Threading.Tasks;
 6
 7namespace Services.DataServices
 8{
 9    public class SavedMatchingColumnDataServices : IDataServices
 10    {
 11        private readonly SavedMatchingColumnRepository _repository;
 12
 013        public SavedMatchingColumnDataServices(SavedMatchingColumnRepository repository)
 14        {
 015            _repository = repository;
 016        }
 17
 18        public Task<int> AddSavedMatchingColumn(SavedMatchingColumn value)
 19        {
 020            return _repository.Add(value);
 21        }
 22        public async Task<List<SavedMatchingColumn>> GetSavedMatchingColumns()
 23        {
 024            return await _repository.Get();
 025        }
 26
 27        public async Task<SavedMatchingColumn?> GetSavedMatchingColumnAsync(int id)
 28        {
 029            return await _repository.GetAsync(id);
 030        }
 31        public async Task<int> SaveChanges()
 32        {
 033            return await _repository.SaveChanges();
 034        }
 35    }
 36}