예제 #1
0
 public PatientAdded(int userId, Guid patientId, string firstname, string surname,
     Title title, NHSNumber nhsNumber)
     : base(userId)
 {
     PatientId = patientId;
     FirstName = firstname;
     Surname = surname;
     Title = title;
     NhsNumber = nhsNumber;
 }
예제 #2
0
 public AddPatient(int userId, Guid patientId, string firstname, string surname, string middlename, 
     Title title, Gender gender, DateTime dateOfBirth, NHSNumber nhsNumber)
     : base(userId)
 {
     PatientId = patientId;
     FirstName = firstname;
     Surname = surname;
     MiddleName = middlename;
     Title = title;
     Gender = gender;
     DateOfBirth = dateOfBirth;
     NhsNumber = nhsNumber;
 }
 public PatientAddedEventBuilder WithNhsNumber(NHSNumber nhsNumber)
 {
     _nhsNumber = nhsNumber;
     return this;
 }
예제 #4
0
 public Patient(int userId, Guid patientId, string firstname, string surname, string middlename,
     Title title, Gender gender, DateTime dateOfBirth, NHSNumber nhsNumber)
 {
     //validation rules here
     ApplyChange(new PatientAdded_v2(userId, patientId, firstname, surname, middlename, title, gender, dateOfBirth, nhsNumber));
 }