Esempio n. 1
0
 private ReleasePlayerInstructionCreatedEvent Map(ReleasePlayerContract.Request request)
 {
     return(new()
     {
         EngagingClubId = request.EngagingClubId,
         ReleasingClubId = request.ReleasingClubId,
         PlayerId = request.PlayerId,
         PlayersContract = PlayerContractMapper.Map(request.PlayersContract)
     });
 }
Esempio n. 2
0
 private EngageWithTransferAgreementInstructionCreatedEvent Map(EngageWithTransferAgreement.Request request)
 {
     return(new()
     {
         EngagingClubId = request.EngagingClubId,
         ReleasingClubId = request.ReleasingClubId,
         PlayerId = request.PlayerId,
         PlayersContract = PlayerContractMapper.Map(request.PlayersContract)
     });
 }
Esempio n. 3
0
 private InstructionsMatchedEvent Map(ReleasePlayerContract.Request request, Guid engagingInstructionId, Guid releasingInstructionId)
 {
     return(new()
     {
         EngagingInstructionId = engagingInstructionId,
         ReleasingInstructionId = releasingInstructionId,
         EngagingClubId = request.EngagingClubId,
         ReleasingClubId = request.ReleasingClubId,
         PlayerId = request.PlayerId,
         PlayersContract = PlayerContractMapper.Map(request.PlayersContract)
     });
 }
Esempio n. 4
0
 private InstructionsMatchedEvent Map(EngageWithTransferAgreement.Request request, Guid engagingInstructionId,
                                      Guid releasingInstructionId, bool matchingResult)
 {
     return(new()
     {
         EngagingInstructionId = engagingInstructionId,
         ReleasingInstructionId = releasingInstructionId,
         EngagingClubId = request.EngagingClubId,
         ReleasingClubId = request.ReleasingClubId,
         PlayerId = request.PlayerId,
         PlayersContract = PlayerContractMapper.Map(request.PlayersContract),
         PerfectMatch = matchingResult
     });
 }