< Summary

Line coverage
82%
Covered lines: 19
Uncovered lines: 4
Coverable lines: 23
Total lines: 34
Line coverage: 82.6%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Id()100%1100%
get_DistanceLimit()100%1100%
get_MinOrderPrice()100%1100%
get_MaxOrderPrice()100%1100%
get_DeliveryCosts()100%1100%
get_RestaurantId()100%1100%
.ctor()100%1100%
.ctor(...)100%1100%
ToString()100%1100%
CompareTo(...)0%20%

File(s)

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

#LineLine coverage
 1using Snacks.Domain.Abstractions;
 2
 3namespace Snacks.Domain.Models;
 4
 5public class DeliveryCondition : IDeliveryCondition
 6{
 1047    public int Id { get; set; } = 0;
 928    public decimal DistanceLimit { get; set; } = 0;
 869    public decimal MinOrderPrice { get; set; } = 0;
 8610    public decimal MaxOrderPrice { get; set; } = 0;
 8811    public decimal DeliveryCosts { get; set; } = 0;
 9012    public int RestaurantId { get; set; } = 0;
 13
 10814    public DeliveryCondition() { }
 415    public DeliveryCondition(int id, decimal distanceLimit, decimal minOrderPrice, decimal maxOrderPrice, decimal delive
 416    {
 417        Id = id;
 418        DistanceLimit = distanceLimit;
 419        MinOrderPrice = minOrderPrice;
 420        MaxOrderPrice = maxOrderPrice;
 421        DeliveryCosts = deliveryCosts;
 422        RestaurantId = restaurantId;
 423    }
 24    public override string ToString()
 225    {
 226        return $"DeliveryCondition(id:{Id}, DistanceLimit:{DistanceLimit}, MinOrderPrice:{MinOrderPrice}, MaxOrderPrice:
 227    }
 28    public int CompareTo(IDeliveryCondition? other)
 029    {
 030        if (other == null) return 1;
 031        return this.Id.CompareTo(other.Id);
 032    }
 33
 34}