예제 #1
0
 private bool CommandMatchesRequest(CreateApprenticeshipEventCommand command, ApprenticeshipEvent request)
 {
     return(command.ProviderId == request.ProviderId &&
            command.AgreementStatus.ToString() == request.AgreementStatus.ToString() &&
            command.ApprenticeshipId == request.ApprenticeshipId &&
            command.EmployerAccountId == request.EmployerAccountId &&
            command.Event == request.Event &&
            command.LearnerId == request.LearnerId &&
            command.PaymentOrder == request.PaymentOrder &&
            command.PaymentStatus.ToString() == request.PaymentStatus.ToString() &&
            command.PausedOnDate == request.PausedOnDate &&
            command.StoppedOnDate == request.StoppedOnDate &&
            command.TrainingEndDate == request.TrainingEndDate &&
            command.TrainingId == request.TrainingId &&
            command.TrainingStartDate == request.TrainingStartDate &&
            command.TrainingTotalCost == request.TrainingTotalCost &&
            command.TrainingType.ToString() == request.TrainingType.ToString() &&
            command.LegalEntityId == request.LegalEntityId &&
            command.LegalEntityName == request.LegalEntityName &&
            command.LegalEntityOrganisationType == request.LegalEntityOrganisationType &&
            command.AccountLegalEntityPublicHashedId == request.AccountLegalEntityPublicHashedId &&
            command.DateOfBirth == request.DateOfBirth &&
            command.TransferSenderId == request.TransferSenderId &&
            command.TransferSenderName == request.TransferSenderName &&
            command.TransferApprovalStatus.ToString() == request.TransferApprovalStatus.ToString() &&
            command.TransferApprovalActionedOn == request.TransferApprovalActionedOn);
 }
 private static bool EventMatchesCommand(ApprenticeshipEvent e, CreateApprenticeshipEventCommand command)
 {
     return(e.EmployerAccountId == command.EmployerAccountId &&
            e.Event == command.Event &&
            e.ProviderId == command.ProviderId &&
            e.AgreementStatus == command.AgreementStatus &&
            e.ApprenticeshipId == command.ApprenticeshipId &&
            e.LearnerId == command.LearnerId &&
            e.PaymentOrder == command.PaymentOrder &&
            e.PaymentStatus == command.PaymentStatus &&
            e.PausedOnDate == command.PausedOnDate &&
            e.StoppedOnDate == command.StoppedOnDate &&
            e.TrainingEndDate == command.TrainingEndDate &&
            e.TrainingId == command.TrainingId &&
            e.TrainingStartDate == command.TrainingStartDate &&
            e.TrainingTotalCost == command.TrainingTotalCost &&
            e.TrainingType == command.TrainingType &&
            e.LegalEntityId == command.LegalEntityId &&
            e.LegalEntityName == command.LegalEntityName &&
            e.LegalEntityOrganisationType == command.LegalEntityOrganisationType &&
            e.AccountLegalEntityPublicHashedId == command.AccountLegalEntityPublicHashedId &&
            e.DateOfBirth == command.DateOfBirth &&
            e.PriceHistory.Count() == command.PriceHistory.Count() &&
            e.TransferSenderId == command.TransferSenderId &&
            e.TransferSenderName == command.TransferSenderName &&
            e.TransferApprovalStatus == command.TransferApprovalStatus &&
            e.TransferApprovalActionedOn == command.TransferApprovalActionedOn);
 }
예제 #3
0
 public void Arrange()
 {
     _validator = new CreateApprenticeshipEventCommandValidator();
     _command   = new CreateApprenticeshipEventCommand();
 }