< Summary

Line coverage
80%
Covered lines: 17
Uncovered lines: 4
Coverable lines: 21
Total lines: 30
Line coverage: 80.9%
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_Identifikation()100%1100%
get_OrderAddressId()100%1100%
get_OrderStateId()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/Order.cs

#LineLine coverage
 1using Snacks.Domain.Abstractions;
 2
 3namespace Snacks.Domain.Models;
 4
 5public class Order : IOrder
 6{
 987    public int Id { get; set; } = 0;
 828    public string? Identifikation { get; set; } = null;
 829    public int OrderAddressId { get; set; } = 0;
 8610    public int OrderStateId { get; set; } = 0;
 8411    public int RestaurantId { get; set; } = 0;
 9612    public Order() { }
 413    public Order (int id, string identifikation, int orderAddressId, int orderStateId, int restaurantId)
 414    {
 415        Id = id;
 416        Identifikation = identifikation;
 417        OrderAddressId = orderAddressId;
 418        OrderStateId = orderStateId;
 419        RestaurantId = restaurantId;
 420    }
 21    public override string ToString()
 222    {
 223        return $"Id: {Id}, Identifikation: {Identifikation}, OrderAdressId: {OrderAddressId}, OrderStateId: {OrderStateI
 224    }
 25    public int CompareTo(IOrder? other)
 026    {
 027        if (other == null) return 1;
 028        return this.Id.CompareTo(other.Id);
 029    }
 30}