private static void InitializeInstance(RegistrationStateInstance instance, IRegistrationReceived data)
        {
            WriteLine("Initializing: {0} ({1})", data.SubmissionId, data.ParticipantEmailAddress);

            instance.ParticipantEmailAddress  = data.ParticipantEmailAddress;
            instance.ParticipantLicenseNumber = data.ParticipantLicenseNumber;
            instance.ParticipantCategory      = data.ParticipantCategory;

            instance.EventId = data.EventId;
            instance.RaceId  = data.RaceId;
        }
 private static IProcessRegistration CreateProcessRegistration(IRegistrationReceived message) => new Process(message.SubmissionId, message.ParticipantEmailAddress, message.ParticipantLicenseNumber, message.ParticipantCategory,
                                                                                                             message.EventId, message.RaceId, message.CardNumber);