using System.Diagnostics.CodeAnalysis; namespace Diligent.WebAPI.Business.Services { [ExcludeFromCodeCoverage] public class WebhookDefinitionService : IWebhookDefinitionService { private readonly DatabaseContext _context; private readonly IMapper _mapper; public WebhookDefinitionService(DatabaseContext context, IMapper mapper) { _context = context; _mapper = mapper; } public async Task> GetAll() { var webhookDefinitions = await _context.WebhookDefinitions.ToListAsync(); return _mapper.Map>(webhookDefinitions); } } }