< Summary

Information
Class: KT.Modules.Alarm.Core.Domain.UserConnection
Assembly: KT.Modules.Alarm
File(s): G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Alarm\Core\Domain\UserConnection.cs
Line coverage
91%
Covered lines: 11
Uncovered lines: 1
Coverable lines: 12
Total lines: 22
Line coverage: 91.6%
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
.ctor(...)100%11100%
get_Id()100%210%
get_IdConnection()100%11100%
get_UserId1()100%11100%
get_UserId2()100%11100%
get_CreatedAt()100%11100%

File(s)

G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Alarm\Core\Domain\UserConnection.cs

#LineLine coverage
 1using MongoDB.Bson;
 2using MongoDB.Bson.Serialization.Attributes;
 3
 4namespace KT.Modules.Alarm.Core.Domain
 5{
 6    internal class UserConnection
 7    {
 28        public UserConnection(string userId1, string userId2)
 29        {
 210            IdConnection = Guid.NewGuid().ToString();
 211            UserId1 = userId1;
 212            UserId2 = userId2;
 213            CreatedAt = DateTime.UtcNow;
 214        }
 15        [BsonId]
 016        public ObjectId Id { get; private set; }
 317        public string IdConnection { get; private set; }
 418        public string UserId1 { get; private set; }
 419        public string UserId2 { get; private set; }
 320        public DateTime CreatedAt { get; private set; }
 21    }
 22}