< Summary

Information
Class: Services.DataServices.OrderShipmentTotalsDataServices
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/DataServices/OrderShipmentTotalsDataServices.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 25
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%
SetOrUpdateAsync()100%210%
GetHistoryByOrderIdAsync()100%210%

File(s)

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

#LineLine coverage
 1using OzonDomains.Models;
 2using OzonRepositories.Data;
 3
 4namespace Services.DataServices;
 5
 6public class OrderShipmentTotalsDataServices : IOrderShipmentTotalsDataService
 7{
 8    private readonly IOrderShipmentTotalsRepository _repository;
 9
 010    public OrderShipmentTotalsDataServices(IOrderShipmentTotalsRepository repository)
 11    {
 012        _repository = repository;
 013    }
 14
 15    public async Task<OrderShipmentTotals> SetOrUpdateAsync(OrderShipmentTotals value)
 16    {
 017        return await _repository.SetOrUpdateAsync(value).ConfigureAwait(false);
 018    }
 19
 20    public async Task<List<OrderShipmentTotals>> GetHistoryByOrderIdAsync(int orderId)
 21    {
 022        return await _repository.GetHistoryByOrderIdAsync(orderId).ConfigureAwait(false);
 023    }
 24}
 25