Exemplo n.º 1
0
        public void Apply(ClientRegistered command)
        {
            FirstName = command.FirstName;
            LastName = command.LastName;
            Gender = command.Gender;
            DateOfBirth = command.DateOfBirth;
            Email = command.Email;
            ContactNumber = command.ContactNumber;
            Address.Line1 = command.AddressLine1;
            Address.Line2 = command.AddressLine2;
            Address.Suburb = command.Suburb;
            Address.City = command.City;
            ExcerciseFrequency = command.ExcerciseFrequency;
            IsSmoker = command.IsSmoker;
            CurrentMedications = command.CurrentMedications;
            PreviousAilments = command.PreviousAilments;
            GeneralPractionerName = command.GeneralPractionerName;
            MedicalClearance = command.MedicalClearance;
            HasHadPreviousTherapy = command.HasHadPreviousTherapy;
            TouchPreference = command.TouchPreference;
            ContraIndications.Arteriosclerosis = command.ContraIndicationsArteriosclerosis;
            ContraIndications.Arthritis = command.ContraIndicationsArthritis;
            ContraIndications.Asthma = command.ContraIndicationsAsthma;
            ContraIndications.Cancer = command.ContraIndicationsCancer;
            ContraIndications.ColdOrFlu = command.ContraIndicationsColdOrFlu;
            ContraIndications.ContactLenses = command.ContraIndicationsContactLenses;
            ContraIndications.CutsBurnsBruises = command.ContraIndicationsCutsBurnsBruises;
            ContraIndications.Depression = command.ContraIndicationsDepression;
            ContraIndications.Diabetes = command.ContraIndicationsDiabetes;
            ContraIndications.Dizziness = command.ContraIndicationsDizziness;
            ContraIndications.Epilepsy = command.ContraIndicationsEpilepsy;
            ContraIndications.Headache = command.ContraIndicationsHeadache;
            ContraIndications.HeartDisease = command.ContraIndicationsHeartDisease;
            ContraIndications.Hemophilia = command.ContraIndicationsHemophilia;
            ContraIndications.Hernia = command.ContraIndicationsHernia;
            ContraIndications.HighBloodPressure = command.ContraIndicationsHighBloodPressure;
            ContraIndications.Imflamation = command.ContraIndicationsImflammation;
            ContraIndications.IrritatedSkinRash = command.ContraIndicationsIrritatedSkinRash;
            ContraIndications.IsPregnant = command.ContraIndicationsIsPregnant;
            ContraIndications.LowBloodPressure = command.ContraIndicationsLowBloodPressure;
            ContraIndications.MusculoskeletalProblems = command.ContraIndicationsMusculoskletalProblems;
            ContraIndications.PinsPacemaker = command.ContraIndicationsPinsPacemaker;
            ContraIndications.SeverePain = command.ContraIndicationsSeverePain;
            ContraIndications.SleepDisturbance = command.ContraIndicationsSleepDisturbance;
            ContraIndications.StomachUlcers = command.ContraIndicationsStomachUlcers;
            ContraIndications.Sunburn = command.ContraIndicationsSunburn;
            ContraIndications.VaricoseVeins = command.ContraIndicationsVaricoseVeins;

            CurrentStressLevels = command.CurrentStressLevels;
            CurrentPainOrTensionLevels = command.CurrentPainOrTensionLevels;
            Difficuties = command.Difficulties;
            AreasNotToBeMassaged = command.AreasNotToBeMassaged;
            TermsAndConditions.Condition1 = command.TermsAndConditionsConditions1;
            TermsAndConditions.Condition2 = command.TermsAndConditionsConditions2;
            TermsAndConditions.Condition3 = command.TermsAndConditionsConditions3;
            TermsAndConditions.Condition4 = command.TermsAndConditionsConditions4;
            TermsAndConditions.Condition5 = command.TermsAndConditionsConditions5;
            TermsAndConditions.Condition6 = command.TermsAndConditionsConditions6;
            TermsAndConditions.Condition7 = command.TermsAndConditionsConditions7;
            TermsAndConditions.Condition8 = command.TermsAndConditionsConditions8;


            OrganizationId = command.OrganizationId;
        }
Exemplo n.º 2
0
        public void Apply(ClientRegistered domainEvent)
        {
            OrganizationId = domainEvent.OrganizationId;
            FirstName = domainEvent.FirstName;
            LastName = domainEvent.LastName;
            Gender = domainEvent.Gender;
            DateOfBirth = domainEvent.DateOfBirth;
            Email = domainEvent.Email;
            ContactNumber = domainEvent.ContactNumber;
            AddressLine1 = domainEvent.AddressLine1;
            AddressLine2 = domainEvent.AddressLine2;
            Suburb = domainEvent.Suburb;
            City = domainEvent.City;
            ExcerciseFrequency = domainEvent.ExcerciseFrequency;
            IsSmoker = domainEvent.IsSmoker;
            CurrentMedications = domainEvent.CurrentMedications;
            PreviousAilments = domainEvent.PreviousAilments;
            GeneralPractionerName = domainEvent.GeneralPractionerName;
            MedicalClearance = domainEvent.MedicalClearance;
            HasHadPreviousTherapy = domainEvent.HasHadPreviousTherapy;
            TouchPreference = domainEvent.TouchPreference;
            ContraIndicationsArteriosclerosis = domainEvent.ContraIndicationsArteriosclerosis;

            ContraIndicationsArthritis = domainEvent.ContraIndicationsArthritis;
            ContraIndicationsAsthma = domainEvent.ContraIndicationsAsthma;
            ContraIndicationsCancer = domainEvent.ContraIndicationsCancer;
            ContraIndicationsColdOrFlu = domainEvent.ContraIndicationsColdOrFlu;
            ContraIndicationsContactLenses = domainEvent.ContraIndicationsContactLenses;
            ContraIndicationsCutsBurnsBruises = domainEvent.ContraIndicationsCutsBurnsBruises;
            ContraIndicationsDepression = domainEvent.ContraIndicationsDepression;
            ContraIndicationsDiabetes = domainEvent.ContraIndicationsDiabetes;
            ContraIndicationsDizziness = domainEvent.ContraIndicationsDizziness;
            ContraIndicationsEpilepsy = domainEvent.ContraIndicationsEpilepsy;
            ContraIndicationsHeadache = domainEvent.ContraIndicationsHeadache;
            ContraIndicationsHeartDisease = domainEvent.ContraIndicationsHeartDisease;
            ContraIndicationsHemophilia = domainEvent.ContraIndicationsHemophilia;
            ContraIndicationsHernia = domainEvent.ContraIndicationsHernia;
            ContraIndicationsHighBloodPressure = domainEvent.ContraIndicationsHighBloodPressure;
            ContraIndicationsImflammation = domainEvent.ContraIndicationsImflammation;
            ContraIndicationsIrritatedSkinRash = domainEvent.ContraIndicationsIrritatedSkinRash;
            ContraIndicationsIsPregnant = domainEvent.ContraIndicationsIsPregnant;
            ContraIndicationsLowBloodPressure = domainEvent.ContraIndicationsLowBloodPressure;
            ContraIndicationsMusculoskletalProblems = domainEvent.ContraIndicationsMusculoskletalProblems;
            ContraIndicationsPinsPacemaker = domainEvent.ContraIndicationsPinsPacemaker;
            ContraIndicationsSeverePain = domainEvent.ContraIndicationsSeverePain;
            ContraIndicationsSleepDisturbance = domainEvent.ContraIndicationsSleepDisturbance;
            ContraIndicationsStomachUlcers = domainEvent.ContraIndicationsStomachUlcers;
            ContraIndicationsSunburn = domainEvent.ContraIndicationsSunburn;
            ContraIndicationsVaricoseVeins = domainEvent.ContraIndicationsVaricoseVeins;

            CurrentStressLevels = domainEvent.CurrentStressLevels;
            CurrentPainOrTensionLevels = domainEvent.CurrentPainOrTensionLevels;
            AreasNotToBeMassaged = domainEvent.AreasNotToBeMassaged;
            TermsAndConditionsConditions1 = domainEvent.TermsAndConditionsConditions1;
            TermsAndConditionsConditions2 = domainEvent.TermsAndConditionsConditions2;
            TermsAndConditionsConditions3 = domainEvent.TermsAndConditionsConditions3;
            TermsAndConditionsConditions4 = domainEvent.TermsAndConditionsConditions4;
            TermsAndConditionsConditions5 = domainEvent.TermsAndConditionsConditions5;
            TermsAndConditionsConditions6 = domainEvent.TermsAndConditionsConditions6;
            TermsAndConditionsConditions7 = domainEvent.TermsAndConditionsConditions7;
            TermsAndConditionsConditions8 = domainEvent.TermsAndConditionsConditions8;
        }