< Summary

Information
Class: event_list.modules.eventlist.services.EventListDeleteByIdentifierService
Assembly: event-list
File(s): /Users/tiagoamaral/Workspace/desafio/event-list-api/Src/Modules/Eventlist/Services/EventListDeleteByIdentifierService.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 27
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%
Delete()100%11100%

File(s)

/Users/tiagoamaral/Workspace/desafio/event-list-api/Src/Modules/Eventlist/Services/EventListDeleteByIdentifierService.cs

#LineLine coverage
 1/*
 2* eventListDeleteByIdentifierService.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 event_list.modules.eventlist.storage;
 10
 11namespace event_list.modules.eventlist.services;
 12public interface IEventListDeleteByIdentifierService
 13{
 14    Task Delete(Guid id);
 15}
 16
 17public class EventListDeleteByIdentifierService: IEventListDeleteByIdentifierService
 18{
 19    private readonly IEventListStorage _storage;
 20
 121    public EventListDeleteByIdentifierService(IEventListStorage storage)
 122    {
 123        this._storage = storage;
 124    }
 25
 126    public async Task Delete(Guid id) => await _storage.DeleteAsync(id);
 27}