< Summary

Information
Class: WebApi.Models.User
Assembly: AuthWebApi
File(s): /home/runner/work/SEP4/SEP4/backend/microservices/autorisering/WebApi/Models/User.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 16
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
.ctor()100%11100%
get_Username()100%11100%
get_Password()100%11100%
get_Email()100%11100%
get_Role()100%11100%
get_Age()100%11100%

File(s)

/home/runner/work/SEP4/SEP4/backend/microservices/autorisering/WebApi/Models/User.cs

#LineLine coverage
 1using MongoDB.Bson;
 2using MongoDB.Bson.Serialization.Attributes;
 3
 4namespace WebApi.Models
 5{
 6    public class User {
 7        [BsonId]
 8        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
 189        private string _id = ObjectId.GenerateNewId().ToString();
 3610        public string Username { get; set; }
 2611        public string Password { get; set; }
 2812        public string Email { get; set; }
 3313        public string Role { get; set; }
 2214        public int Age { get; set; }
 15    }
 16}