< Summary

Line coverage
100%
Covered lines: 27
Uncovered lines: 0
Coverable lines: 27
Total lines: 38
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Id()100%1100%
get_Street()100%1100%
get_HouseNr()100%1100%
get_City()100%1100%
get_Zip()100%1100%
get_CountryId()100%1100%
get_CoordinateLongitude()100%1100%
get_CoordinateLatitude()100%1100%
.ctor()100%1100%
.ctor(...)100%1100%
ToString()100%1100%
CompareTo(...)50%2100%

File(s)

/home/rob/github-runner/_work/snacks-bb-g1-weidinger-g1-sinnreich/snacks-bb-g1-weidinger-g1-sinnreich/src/Snacks.Domain/Models/Address.cs

#LineLine coverage
 1using Snacks.Domain.Abstractions;
 2
 3namespace Snacks.Domain.Models;
 4
 5public class Address : IAddress
 6{
 2527    public int Id { get; set;} = 0;
 2368    public string? Street { get; set; } = null;
 2289    public string? HouseNr { get; set; } = null;
 23010    public string? City { get; set; } = null;
 22811    public string? Zip { get; set; } = null;
 22812    public int CountryId { get; set; } = 0;
 22813    public double CoordinateLongitude { get; set; } = 0.0;
 22814    public double CoordinateLatitude { get; set; } = 0.0;
 15
 13216    public Address() { }
 6017    public Address(int id, string street, string houseNr, string city, string zip, int countryId, double coordinateLongi
 6018    {
 6019        Id = id;
 6020        Street = street;
 6021        HouseNr = houseNr;
 6022        City = city;
 6023        Zip = zip;
 6024        CountryId = countryId;
 6025        CoordinateLongitude = coordinateLongitude;
 6026        CoordinateLatitude = coordinateLatitude;
 6027    }
 28    public override string ToString()
 229    {
 230        return $"Address(id:{Id}, Street:{Street}, HouseNr:{HouseNr}, City:{City}, Zip:{Zip}, CountryId:{CountryId}, Coo
 231    }
 32
 33    public int CompareTo(IAddress? other)
 234    {
 235        if (other == null) return 1;
 236        return this.Id.CompareTo(other.Id);
 237    }
 38}