예제 #1
0
 private ReleasePlayerInstructionCreatedEvent Map(ReleasePlayerContract.Request request)
 {
     return(new()
     {
         EngagingClubId = request.EngagingClubId,
         ReleasingClubId = request.ReleasingClubId,
         PlayerId = request.PlayerId,
         PlayersContract = PlayerContractMapper.Map(request.PlayersContract)
     });
 }
예제 #2
0
 private EngageWithTransferAgreementInstructionCreatedEvent Map(EngageWithTransferAgreement.Request request)
 {
     return(new()
     {
         EngagingClubId = request.EngagingClubId,
         ReleasingClubId = request.ReleasingClubId,
         PlayerId = request.PlayerId,
         PlayersContract = PlayerContractMapper.Map(request.PlayersContract)
     });
 }
예제 #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)
     });
 }
예제 #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
     });
 }