< Summary

Information
Class: Syki.Back.Features.Academic.CreateCampus.Campus
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateCampus/Campus.cs
Tag: 22_11348620282
Line coverage
95%
Covered lines: 19
Uncovered lines: 1
Coverable lines: 20
Total lines: 35
Line coverage: 95%
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%210%
get_Name()100%11100%
get_City()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%
Update(...)100%11100%
ToOut()100%11100%

File(s)

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

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateCampus;
 2
 3public class Campus
 4{
 1305    public Guid Id { get; }
 06    public Guid InstitutionId { get; }
 4707    public string Name { get; private set; }
 2588    public string City { get; private set; }
 9
 43010    public Campus() { }
 11
 12612    public Campus(Guid institutionId, string name, string city)
 13    {
 12614        Id = Guid.NewGuid();
 12615        InstitutionId = institutionId;
 12616        Name = name;
 12617        City = city;
 12618    }
 19
 20    public void Update(string name, string city)
 21    {
 222        Name = name;
 223        City = city;
 224    }
 25
 26    public CampusOut ToOut()
 27    {
 13028        return new CampusOut
 13029        {
 13030            Id = Id,
 13031            Name = Name,
 13032            City = City,
 13033        };
 34    }
 35}