-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#40 Accessibility - booked records refactoring
- Loading branch information
1 parent
4c70235
commit cd4ba02
Showing
10 changed files
with
67 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...cility/GetBookedRecordsOfFacilityQuery.cs → ...cility/GetBookedRecordsOfFacilityQuery.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ookedRecords/Queries/GetBookedRecordsOfFacility/GetBookedRecordsOfFacilityQueryHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Core.Queries; | ||
|
||
namespace Accessibility.Application.BookedRecords.Queries.GetBookedRecordsOfFacility | ||
{ | ||
public class GetBookedRecordsOfFacilityQueryHandler : IQueryHandler<GetBookedRecordsOfFacilityQuery, QueryCollectionResult<BookedRecordDto>> | ||
{ | ||
private readonly IBookedRecordQueryRepository repository; | ||
|
||
public GetBookedRecordsOfFacilityQueryHandler(IBookedRecordQueryRepository repository) | ||
{ | ||
this.repository = repository; | ||
} | ||
|
||
public Task<QueryCollectionResult<BookedRecordDto>> Handle(GetBookedRecordsOfFacilityQuery request, CancellationToken cancellationToken) | ||
{ | ||
return repository.GetBookedRecords( | ||
request.FacilityId, | ||
request.Params | ||
); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../GetBookedRecordsOfFacilityQueryParams.cs → .../GetBookedRecordsOfFacilityQueryParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
...lity.Application/Bookings/Queries/GetBookedRecordsOfFacility/BookedRecordOfFacilityDto.cs
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...ion/Bookings/Queries/GetBookedRecordsOfFacility/GetBookedRecordsOfFacilityQueryHandler.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters