< Summary

Information
Class: Services.ApiServices.ArmtekApi.ArmtekPriceCurrencyConverter
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/ArmtekApi/ArmtekPriceCurrencyConverter.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 8
Line coverage: 100%
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
ConvertToRub(...)100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/ArmtekApi/ArmtekPriceCurrencyConverter.cs

#LineLine coverage
 1namespace Services.ApiServices.ArmtekApi;
 2
 3/// <summary>Перевод цены Армтека в рубли по курсу выбранной в настройках валюты.</summary>
 4public static class ArmtekPriceCurrencyConverter
 5{
 6    public static decimal ConvertToRub(decimal sourcePrice, decimal rateToRub) =>
 47        Math.Round(sourcePrice * rateToRub, MidpointRounding.AwayFromZero);
 8}