< Summary

Information
Class: Services.DataServices.ExcludedBitrixWarehouseDataServices
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/DataServices/ExcludedBitrixWarehouseDataServices.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 17
Coverable lines: 17
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

File(s)

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

#LineLine coverage
 1using OzonDomains.Models;
 2using Services.DataServices.ExcelMapping;
 3
 4namespace Services.DataServices;
 5
 6public class ExcludedBitrixWarehouseDataServices : IDataServices
 7{
 8    private readonly ExcludedBitrixWarehouseRepository _repository;
 9
 010    public ExcludedBitrixWarehouseDataServices(ExcludedBitrixWarehouseRepository repository)
 11    {
 012        _repository = repository;
 013    }
 14
 15    public Task<int> AddExcludedBitrixWarehouse(ExcludedBitrixWarehouse value)
 16    {
 017        return _repository.Add(value);
 18    }
 19
 20    public Task<int> DeleteExcludedBitrixWarehouse(ExcludedBitrixWarehouse value)
 21    {
 022        return _repository.Delete(value);
 23    }
 24
 25    public async Task<List<ExcludedBitrixWarehouse>> GetExcludedBitrixWarehouses()
 26    {
 027        return await _repository.Get();
 028    }
 29
 30    public async Task<ExcludedBitrixWarehouse?> GetExcludedBitrixWarehouseAsync(int id)
 31    {
 032        return await _repository.GetAsync(id);
 033    }
 34
 35    public async Task<ExcludedBitrixWarehouse?> GetExcludedBitrixWarehouseAsync(ExcludedBitrixWarehouse value)
 36    {
 037        return await _repository.GetAsync(value);
 038    }
 39
 40    public async Task<int> UpdateExcludedBitrixWarehouse(ExcludedBitrixWarehouse value)
 41    {
 042        return await _repository.Update(value);
 043    }
 44
 45    public async Task<bool> ExistsByNameAsync(string name)
 46    {
 047        return await _repository.ExistsByNameAsync(name);
 048    }
 49
 50
 51    public async Task<int> SaveChanges()
 52    {
 053        return await _repository.SaveChanges();
 054    }
 55}