< Summary

Information
Class: event_list.modules.eventlist.storage.EventFormDto
Assembly: event-list
File(s): /Users/tiagoamaral/Workspace/desafio/event-list-api/Src/Shared/Dtos/EventFormDto.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 37
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_Title()100%11100%
get_Description()100%11100%
get_Date()100%11100%
get_Locale()100%11100%

File(s)

/Users/tiagoamaral/Workspace/desafio/event-list-api/Src/Shared/Dtos/EventFormDto.cs

#LineLine coverage
 1/*
 2* EventFormDto.cs
 3* event-list
 4*
 5* Created by Tiago Amaral on 06/09/2025.
 6* Copyright ©2024 Tiago Amaral. All rights reserved.
 7*/
 8
 9using System;
 10using System.ComponentModel.DataAnnotations;
 11using event_list.shared.exceptionsMessage;
 12using event_list.shared.dtos;
 13
 14namespace event_list.modules.eventlist.storage;
 15
 16public class EventFormDto
 17{
 18    [Key]
 6319    public Guid? Id { get; set; } = null;
 20
 21    [Required(ErrorMessage = ExceptionsMessages.InvalidTitleMessage)]
 22    [StringLength(ExceptionsContraints.MaxSizeTitle, ErrorMessage = ExceptionsMessages.MaxTitleSizeMessage)]
 6723    public string Title { get; set; } = string.Empty;
 24
 25    [Required(ErrorMessage = ExceptionsMessages.InvalidDescriptionMessage)]
 26    [StringLength(ExceptionsContraints.MaxSizeDescription, ErrorMessage = ExceptionsMessages.MaxDescriptionSizeMessage)]
 6027    public string Description { get; set; } = string.Empty;
 28
 29    [Required(ErrorMessage = ExceptionsMessages.InvalidDateMessage)]
 30    [FutureDateAttributeValidator(ErrorMessage = ExceptionsMessages.InvalidFutureDateMessage)]
 2031    public DateTime Date { get; set; }
 32
 33    [Required(ErrorMessage = ExceptionsMessages.InvalidLocationMessage)]
 34    [StringLength(ExceptionsContraints.MaxSizeLocation, ErrorMessage = ExceptionsMessages.MaxLocationSizeMessage)]
 35
 6036    public string Locale { get; set; } = string.Empty;
 37}