refactor(dir): ♻ limit scope of Handlers and Profiles

This commit is contained in:
Collin M. Barrett 2021-11-02 14:43:52 -05:00
parent b567696e2e
commit e8561d616d
8 changed files with 16 additions and 16 deletions

View file

@ -17,7 +17,7 @@ public class Query : IRequest<IEnumerable<LanguageVm>>
{
}
public class Handler : IRequestHandler<Query, IEnumerable<LanguageVm>>
internal class Handler : IRequestHandler<Query, IEnumerable<LanguageVm>>
{
private readonly IQueryContext _context;
private readonly IMapper _mapper;
@ -40,7 +40,7 @@ public async Task<IEnumerable<LanguageVm>> Handle(
}
}
public class LanguageVmProfile : Profile
internal class LanguageVmProfile : Profile
{
public LanguageVmProfile()
{

View file

@ -18,7 +18,7 @@ public class Query : IRequest<IEnumerable<LicenseVm>>
{
}
public class Handler : IRequestHandler<Query, IEnumerable<LicenseVm>>
internal class Handler : IRequestHandler<Query, IEnumerable<LicenseVm>>
{
private readonly IQueryContext _context;
private readonly IMapper _mapper;
@ -40,7 +40,7 @@ public async Task<IEnumerable<LicenseVm>> Handle(
}
}
public class LicenseVmProfile : Profile
internal class LicenseVmProfile : Profile
{
public LicenseVmProfile()
{

View file

@ -23,7 +23,7 @@ public Query(int id)
public int Id { get; }
}
public class Handler : IRequestHandler<Query, ListDetailsVm>
internal class Handler : IRequestHandler<Query, ListDetailsVm>
{
private readonly IQueryContext _context;
private readonly IMapper _mapper;
@ -44,7 +44,7 @@ public async Task<ListDetailsVm> Handle(
}
}
public class ListDetailsVmProfile : Profile
internal class ListDetailsVmProfile : Profile
{
public ListDetailsVmProfile()
{

View file

@ -18,7 +18,7 @@ public class Query : IRequest<IEnumerable<ListVm>>
{
}
public class Handler : IRequestHandler<Query, IEnumerable<ListVm>>
internal class Handler : IRequestHandler<Query, IEnumerable<ListVm>>
{
private readonly IQueryContext _context;
private readonly IMapper _mapper;
@ -40,7 +40,7 @@ public async Task<IEnumerable<ListVm>> Handle(
}
}
public class ListVmProfile : Profile
internal class ListVmProfile : Profile
{
public ListVmProfile()
{

View file

@ -18,7 +18,7 @@ public class Query : IRequest<IEnumerable<MaintainerVm>>
{
}
public class Handler : IRequestHandler<Query, IEnumerable<MaintainerVm>>
internal class Handler : IRequestHandler<Query, IEnumerable<MaintainerVm>>
{
private readonly IQueryContext _context;
private readonly IMapper _mapper;
@ -40,7 +40,7 @@ public async Task<IEnumerable<MaintainerVm>> Handle(
}
}
public class MaintainerVmProfile : Profile
internal class MaintainerVmProfile : Profile
{
public MaintainerVmProfile()
{

View file

@ -18,7 +18,7 @@ public class Query : IRequest<IEnumerable<SoftwareVm>>
{
}
public class Handler : IRequestHandler<Query, IEnumerable<SoftwareVm>>
internal class Handler : IRequestHandler<Query, IEnumerable<SoftwareVm>>
{
private readonly IQueryContext _context;
private readonly IMapper _mapper;
@ -40,7 +40,7 @@ public async Task<IEnumerable<SoftwareVm>> Handle(
}
}
public class SoftwareVmProfile : Profile
internal class SoftwareVmProfile : Profile
{
public SoftwareVmProfile()
{

View file

@ -18,7 +18,7 @@ public class Query : IRequest<IEnumerable<SyntaxVm>>
{
}
public class Handler : IRequestHandler<Query, IEnumerable<SyntaxVm>>
internal class Handler : IRequestHandler<Query, IEnumerable<SyntaxVm>>
{
private readonly IQueryContext _context;
private readonly IMapper _mapper;
@ -40,7 +40,7 @@ public async Task<IEnumerable<SyntaxVm>> Handle(
}
}
public class SyntaxVmProfile : Profile
internal class SyntaxVmProfile : Profile
{
public SyntaxVmProfile()
{

View file

@ -17,7 +17,7 @@ public class Query : IRequest<IEnumerable<TagVm>>
{
}
public class Handler : IRequestHandler<Query, IEnumerable<TagVm>>
internal class Handler : IRequestHandler<Query, IEnumerable<TagVm>>
{
private readonly IQueryContext _context;
private readonly IMapper _mapper;
@ -39,7 +39,7 @@ public async Task<IEnumerable<TagVm>> Handle(
}
}
public class TagVmProfile : Profile
internal class TagVmProfile : Profile
{
public TagVmProfile()
{