< Summary - ZhEaIsNsAaBn.Libraries coverage (affected: 23 packages)

Information
Class: ZhEaIsNsAaBn.Infrastructure.Core.NullablePhoneNumberConverter
Assembly: ZhEaIsNsAaBn.Infrastructure.Core
File(s): /home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.Infrastructure.Core/EFValueConverters/NullablePhoneNumberConverter.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 14
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%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.Infrastructure.Core/EFValueConverters/NullablePhoneNumberConverter.cs

#LineLine coverage
 1using PhoneNumbers;
 2
 3namespace ZhEaIsNsAaBn.Infrastructure.Core;
 4
 5/// <summary>
 6/// Nullable version of <see cref="PhoneNumberConverter"/>; empty text reads as <see langword="null"/>. Text without a <
 7/// country code is read as a Saudi (<c>SA</c>) number.
 8/// </summary>
 9public class NullablePhoneNumberConverter : ValueConverter<PhoneNumber?, string?>
 10{
 11    /// <summary>Creates the converter.</summary>
 012    public NullablePhoneNumberConverter() : base( m => m != null ? PhoneNumberUtil.GetInstance().Format( m, PhoneNumberF
 013                                                  s => !string.IsNullOrWhiteSpace( s ) ? PhoneNumberUtil.GetInstance().P
 14}

Methods/Properties

.ctor()