< Summary

Information
Class: Services.DataServices.OzonChatResponseTimeDataServices
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/DataServices/OzonChatResponseTimeDataServices.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 21
Coverable lines: 21
Total lines: 60
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%
Add()100%210%
Delete()100%210%
Get()100%210%
GetAsync()100%210%
GetAsync()100%210%
Update()100%210%
GetByChatIdAsync()100%210%
SaveChanges()100%210%
GetByClientIdAsync()100%210%

File(s)

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

#LineLine coverage
 1using OzonDomains.Models;
 2using OzonRepositories.Data;
 3
 4namespace Services.DataServices
 5{
 6    public class OzonChatResponseTimeDataServices : IDataServices
 7    {
 8        private readonly OzonChatResponseTimeRepository _repository;
 9
 010        public OzonChatResponseTimeDataServices(OzonChatResponseTimeRepository repository)
 11        {
 012            _repository = repository;
 013        }
 14
 15        public async Task<int> Add(OzonChatResponseTime value)
 16        {
 017            return await _repository.Add(value);
 018        }
 19
 20        public async Task<int> Delete(OzonChatResponseTime value)
 21        {
 022            return await _repository.Delete(value);
 023        }
 24
 25        public async Task<List<OzonChatResponseTime>> Get()
 26        {
 027            return await _repository.Get();
 028        }
 29
 30        public async Task<OzonChatResponseTime?> GetAsync(int id)
 31        {
 032            return await _repository.GetAsync(id);
 033        }
 34
 35        public async Task<OzonChatResponseTime?> GetAsync(OzonChatResponseTime value)
 36        {
 037            return await _repository.GetAsync(value);
 038        }
 39
 40        public async Task<int> Update(OzonChatResponseTime value)
 41        {
 042            return await _repository.Update(value);
 043        }
 44
 45        public async Task<List<OzonChatResponseTime>> GetByChatIdAsync(string chatId)
 46        {
 047            return await _repository.GetByChatIdAsync(chatId);
 048        }
 49
 50        public async Task<int> SaveChanges()
 51        {
 052            return await _repository.SaveChanges();
 053        }
 54
 55        public async Task<List<OzonChatResponseTime>> GetByClientIdAsync(int clientId)
 56        {
 057            return await _repository.GetByClientIdAsync(clientId);
 058        }
 59    }
 60}