< Summary - Syki

Information
Class: Syki.Back.Features.Academic.CreateCampus.Campus
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateCampus/Campus.cs
Tag: 21_17346963026
Line coverage
100%
Covered lines: 20
Uncovered lines: 0
Coverable lines: 20
Total lines: 34
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
get_Id()100%11100%
get_InstitutionId()100%11100%
get_Name()100%11100%
get_State()100%11100%
get_City()100%11100%
get_Capacity()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%
Update(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CreateCampus/Campus.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateCampus;
 2
 3/// <summary>
 4/// Campus
 5/// </summary>
 6public class Campus
 7{
 7388    public Guid Id { get; set; }
 3549    public Guid InstitutionId { get; set; }
 123810    public string Name { get; set; }
 72211    public BrazilState State { get; set; }
 72212    public string City { get; set; }
 73813    public int Capacity { get; set; }
 14
 146415    private Campus() { }
 16
 35417    public Campus(Guid institutionId, string name, BrazilState state, string city, int capacity)
 18    {
 35419        Id = Guid.CreateVersion7();
 35420        InstitutionId = institutionId;
 35421        Name = name;
 35422        State = state;
 35423        City = city;
 35424        Capacity = capacity;
 35425    }
 26
 27    public void Update(string name, BrazilState state, string city, int capacity)
 28    {
 429        Name = name;
 430        State = state;
 431        City = city;
 432        Capacity = capacity;
 433    }
 34}